summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/Triple.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/Support/Triple.cpp')
-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 c53c878e9df..4471fd05181 100644
--- a/llvm/lib/Support/Triple.cpp
+++ b/llvm/lib/Support/Triple.cpp
@@ -210,6 +210,7 @@ StringRef Triple::getOSTypeName(OSType Kind) {
case Contiki: return "contiki";
case AMDPAL: return "amdpal";
case HermitCore: return "hermit";
+ case Hurd: return "hurd";
}
llvm_unreachable("Invalid OSType");
@@ -508,6 +509,7 @@ static Triple::OSType parseOS(StringRef OSName) {
.StartsWith("contiki", Triple::Contiki)
.StartsWith("amdpal", Triple::AMDPAL)
.StartsWith("hermit", Triple::HermitCore)
+ .StartsWith("hurd", Triple::Hurd)
.Default(Triple::UnknownOS);
}
OpenPOWER on IntegriCloud