OSDN Git Service

Add NativeClient support to Triple::ParseOS.
authorIvan Krasin <krasin@chromium.org>
Mon, 22 Aug 2011 23:08:53 +0000 (23:08 +0000)
committerIvan Krasin <krasin@chromium.org>
Mon, 22 Aug 2011 23:08:53 +0000 (23:08 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@138291 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Support/Triple.cpp

index 8bb7f38..ccb1a24 100644 (file)
@@ -356,6 +356,8 @@ Triple::OSType Triple::ParseOS(StringRef OSName) {
     return Minix;
   else if (OSName.startswith("rtems"))
     return RTEMS;
+  else if (OSName.startswith("nacl"))
+    return NativeClient;
   else
     return UnknownOS;
 }