aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2011-07-06 20:56:26 +0000
committerEli Friedman <eli.friedman@gmail.com>2011-07-06 20:56:26 +0000
commitb0e77a228f03e88bf2c5a1b3ccfb829c43ae0732 (patch)
tree3195c2ce62cd71509b5a12ac0139458ae931d662
parent037d1c0c7e01cefeff7e538682c9a1e536e14030 (diff)
downloadexternal_llvm-b0e77a228f03e88bf2c5a1b3ccfb829c43ae0732.zip
external_llvm-b0e77a228f03e88bf2c5a1b3ccfb829c43ae0732.tar.gz
external_llvm-b0e77a228f03e88bf2c5a1b3ccfb829c43ae0732.tar.bz2
Fix missing triple support for RTEMS target.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134532 91177308-0d34-0410-b5e6-96231b3b80d8
-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 bf1fa09..6247a8f 100644
--- a/lib/Support/Triple.cpp
+++ b/lib/Support/Triple.cpp
@@ -351,6 +351,8 @@ Triple::OSType Triple::ParseOS(StringRef OSName) {
return Haiku;
else if (OSName.startswith("minix"))
return Minix;
+ else if (OSName.startswith("rtems"))
+ return RTEMS;
else
return UnknownOS;
}