aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/Triple.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2012-08-06 20:52:18 +0000
committerEric Christopher <echristo@apple.com>2012-08-06 20:52:18 +0000
commit22738d00a30670d5227b47fe2b34d044cebd481c (patch)
treea9e31e9aa0be3f16ab53b67cbf51103467478870 /llvm/lib/Support/Triple.cpp
parentb9ddbd3daa318f38266ea8c4b0786073911615ed (diff)
downloadllvm-22738d00a30670d5227b47fe2b34d044cebd481c.zip
llvm-22738d00a30670d5227b47fe2b34d044cebd481c.tar.gz
llvm-22738d00a30670d5227b47fe2b34d044cebd481c.tar.bz2
Add support for the OpenBSD for Bitrig.
Patch by David Hill. llvm-svn: 161344
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 7b26ea9..cca549d 100644
--- a/llvm/lib/Support/Triple.cpp
+++ b/llvm/lib/Support/Triple.cpp
@@ -124,6 +124,7 @@ const char *Triple::getOSTypeName(OSType Kind) {
case RTEMS: return "rtems";
case NativeClient: return "nacl";
case CNK: return "cnk";
+ case Bitrig: return "bitrig";
}
llvm_unreachable("Invalid OSType");
@@ -293,6 +294,7 @@ static Triple::OSType parseOS(StringRef OSName) {
.StartsWith("rtems", Triple::RTEMS)
.StartsWith("nacl", Triple::NativeClient)
.StartsWith("cnk", Triple::CNK)
+ .StartsWith("bitrig", Triple::Bitrig)
.Default(Triple::UnknownOS);
}