From: Sam Clegg Date: Tue, 24 Oct 2017 22:48:19 +0000 (+0000) Subject: Add Triple::isOSUnknown X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9ea950f009d150545d67eb273669bd7203628f4c;p=llvm 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 --- 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 ||