Add support for the OpenBSD for Bitrig.

Patch by David Hill.

llvm-svn: 161344
This commit is contained in:
Eric Christopher
2012-08-06 20:52:18 +00:00
parent b9ddbd3daa
commit 22738d00a3
11 changed files with 30 additions and 20 deletions

View File

@@ -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);
}