add haiku support, patch by Paul Davey!
authorChris Lattner <sabre@nondot.org>
Fri, 16 Oct 2009 02:06:30 +0000 (02:06 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 16 Oct 2009 02:06:30 +0000 (02:06 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84238 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/ADT/Triple.h
lib/Support/Triple.cpp

index 89736bcc45651edc62bc2721fe48990e19b22a64..7fb0014dc8a549efcd7fcb9abd0c79874676f9c1 100644 (file)
@@ -95,7 +95,8 @@ public:
     NetBSD,
     OpenBSD,
     Solaris,
-    Win32
+    Win32,
+    Haiku
   };
   
 private:
index 6f805da33299778a7e4abfebcd731ed8e34b67da..26a1a4e58296a7d99e6c98da55d847971ecdd72b 100644 (file)
@@ -96,6 +96,7 @@ const char *Triple::getOSTypeName(OSType Kind) {
   case OpenBSD: return "openbsd";
   case Solaris: return "solaris";
   case Win32: return "win32";
+  case Haiku: return "haiku";
   }
 
   return "<invalid>";
@@ -276,6 +277,8 @@ void Triple::Parse() const {
     OS = Solaris;
   else if (OSName.startswith("win32"))
     OS = Win32;
+  else if (OSName.startswith("haiku"))
+       OS = Haiku;
   else
     OS = UnknownOS;