From: Ivan Krasin Date: Mon, 22 Aug 2011 23:08:53 +0000 (+0000) Subject: Add NativeClient support to Triple::ParseOS. X-Git-Tag: android-x86-6.0-r1~928^2~1987 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=d883453213ad7823889025ad8ec93dfc43b79df2;p=android-x86%2Fexternal-llvm.git Add NativeClient support to Triple::ParseOS. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@138291 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Support/Triple.cpp b/lib/Support/Triple.cpp index 8bb7f382329..ccb1a249761 100644 --- a/lib/Support/Triple.cpp +++ b/lib/Support/Triple.cpp @@ -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; }