[PATCH] D39256: Add Triple::isOSUnknown

Phabricator via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 24 15:48:42 PDT 2017


This revision was automatically updated to reflect the committed changes.
Closed by commit rL316524: Add Triple::isOSUnknown (authored by sbc).

Repository:
  rL LLVM

https://reviews.llvm.org/D39256

Files:
  llvm/trunk/include/llvm/ADT/Triple.h


Index: llvm/trunk/include/llvm/ADT/Triple.h
===================================================================
--- llvm/trunk/include/llvm/ADT/Triple.h
+++ llvm/trunk/include/llvm/ADT/Triple.h
@@ -501,6 +501,8 @@
     return getOS() == Triple::ELFIAMCU;
   }
 
+  bool isOSUnknown() const { return getOS() == Triple::UnknownOS; }
+
   bool isGNUEnvironment() const {
     EnvironmentType Env = getEnvironment();
     return Env == Triple::GNU || Env == Triple::GNUABIN32 ||


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D39256.120141.patch
Type: text/x-patch
Size: 475 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171024/93141bdc/attachment.bin>


More information about the llvm-commits mailing list