From 22738d00a30670d5227b47fe2b34d044cebd481c Mon Sep 17 00:00:00 2001 From: Eric Christopher Date: Mon, 6 Aug 2012 20:52:18 +0000 Subject: Add support for the OpenBSD for Bitrig. Patch by David Hill. llvm-svn: 161344 --- llvm/lib/Support/Triple.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'llvm/lib/Support/Triple.cpp') 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); } -- cgit v1.1