summaryrefslogtreecommitdiff
path: root/lib/Support/Triple.cpp
diff options
context:
space:
mode:
authorDavid L Kreitzer <david.l.kreitzer@intel.com>2016-10-14 14:41:46 +0000
committerDavid L Kreitzer <david.l.kreitzer@intel.com>2016-10-14 14:41:46 +0000
commit9b8425db90bf57a263174c8c56ee90ed099073d7 (patch)
treeca0dcbe871cad56af278d7b19eb447e93f75bad9 /lib/Support/Triple.cpp
parent66c0dee698003ebca1073b3671a956930de6b669 (diff)
Define "contiki" OS specifier.
Patch by Michael LeMay Differential revision: http://reviews.llvm.org/D24897 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@284240 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 19d278d4578..a03fd40330f 100644
--- a/lib/Support/Triple.cpp
+++ b/lib/Support/Triple.cpp
@@ -193,6 +193,7 @@ StringRef Triple::getOSTypeName(OSType Kind) {
case TvOS: return "tvos";
case WatchOS: return "watchos";
case Mesa3D: return "mesa3d";
+ case Contiki: return "contiki";
}
llvm_unreachable("Invalid OSType");
@@ -465,6 +466,7 @@ static Triple::OSType parseOS(StringRef OSName) {
.StartsWith("tvos", Triple::TvOS)
.StartsWith("watchos", Triple::WatchOS)
.StartsWith("mesa3d", Triple::Mesa3D)
+ .StartsWith("contiki", Triple::Contiki)
.Default(Triple::UnknownOS);
}