summaryrefslogtreecommitdiff
path: root/lib/Support/Triple.cpp
diff options
context:
space:
mode:
authorIvan Krasin <krasin@chromium.org>2011-08-22 23:08:53 +0000
committerIvan Krasin <krasin@chromium.org>2011-08-22 23:08:53 +0000
commitd883453213ad7823889025ad8ec93dfc43b79df2 (patch)
tree42042c6a820c1294b7c25ea068489c20232c50de /lib/Support/Triple.cpp
parent0c2165bbd096d49c17562c2951cecca582e01c75 (diff)
downloadllvm-d883453213ad7823889025ad8ec93dfc43b79df2.tar.gz
llvm-d883453213ad7823889025ad8ec93dfc43b79df2.tar.bz2
llvm-d883453213ad7823889025ad8ec93dfc43b79df2.tar.xz
Add NativeClient support to Triple::ParseOS.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@138291 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/Triple.cpp')
-rw-r--r--lib/Support/Triple.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Support/Triple.cpp b/lib/Support/Triple.cpp
index 8bb7f38232..ccb1a24976 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;
}