]> granicus.if.org Git - llvm/commitdiff
Add Triple::isOSUnknown
authorSam Clegg <sbc@chromium.org>
Tue, 24 Oct 2017 22:48:19 +0000 (22:48 +0000)
committerSam Clegg <sbc@chromium.org>
Tue, 24 Oct 2017 22:48:19 +0000 (22:48 +0000)
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

index 761e0ad98db3ee970eb1f24a61d02ab8dacf25d0..cb73dcabdbd645d71e3ee9a0fa697c0cbea3f2b6 100644 (file)
@@ -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 ||