From 9ea950f009d150545d67eb273669bd7203628f4c Mon Sep 17 00:00:00 2001 From: Sam Clegg Date: Tue, 24 Oct 2017 22:48:19 +0000 Subject: [PATCH] Add Triple::isOSUnknown Subscribers: aheejin Differential Revision: https://reviews.llvm.org/D39256 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@316524 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/ADT/Triple.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/llvm/ADT/Triple.h b/include/llvm/ADT/Triple.h index 761e0ad98db..cb73dcabdbd 100644 --- a/include/llvm/ADT/Triple.h +++ b/include/llvm/ADT/Triple.h @@ -501,6 +501,8 @@ public: return getOS() == Triple::ELFIAMCU; } + bool isOSUnknown() const { return getOS() == Triple::UnknownOS; } + bool isGNUEnvironment() const { EnvironmentType Env = getEnvironment(); return Env == Triple::GNU || Env == Triple::GNUABIN32 || -- 2.40.0