diff options
author | Eric Christopher <echristo@apple.com> | 2012-08-06 20:52:18 +0000 |
---|---|---|
committer | Eric Christopher <echristo@apple.com> | 2012-08-06 20:52:18 +0000 |
commit | b0f6759ab93b42570d71665b13d24ca2c4a5f276 (patch) | |
tree | 6920fa759c64cd88d004d81c19040160321f1dfa /lib/Support/Triple.cpp | |
parent | f8f77466879d10638e9f790dd61851319f6daca9 (diff) |
Add support for the OpenBSD for Bitrig.
Patch by David Hill.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@161344 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/Triple.cpp')
-rw-r--r-- | lib/Support/Triple.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Support/Triple.cpp b/lib/Support/Triple.cpp index 7b26ea9b42..cca549dad5 100644 --- a/lib/Support/Triple.cpp +++ b/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); } |