From 499647bfc3f1345a5b47d3e6c97c49ddb675f7e7 Mon Sep 17 00:00:00 2001 From: Eli Friedman Date: Wed, 6 Jul 2011 20:56:26 +0000 Subject: [PATCH] Fix missing triple support for RTEMS target. llvm-svn: 134532 --- llvm/lib/Support/Triple.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/llvm/lib/Support/Triple.cpp b/llvm/lib/Support/Triple.cpp index bf1fa09a4d03..6247a8f1da6a 100644 --- a/llvm/lib/Support/Triple.cpp +++ b/llvm/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; }