summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support
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
commit3155abfb5753c9045d1560114820f3a8d16be047 (patch)
treec26c95651edce25db571ccb25b6b82350052c463 /llvm/lib/Support
parent00fc7a61598ee5ce6afe0d5290faf1eb767eed52 (diff)
downloadbcm5719-llvm-3155abfb5753c9045d1560114820f3a8d16be047.tar.gz
bcm5719-llvm-3155abfb5753c9045d1560114820f3a8d16be047.zip
Define "contiki" OS specifier.
Patch by Michael LeMay Differential revision: http://reviews.llvm.org/D24897 llvm-svn: 284240
Diffstat (limited to 'llvm/lib/Support')
-rw-r--r--llvm/lib/Support/Triple.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Support/Triple.cpp b/llvm/lib/Support/Triple.cpp
index 19d278d4578..a03fd40330f 100644
--- a/llvm/lib/Support/Triple.cpp
+++ b/llvm/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);
}
OpenPOWER on IntegriCloud