From: Chris Lattner Date: Fri, 16 Oct 2009 02:06:30 +0000 (+0000) Subject: add haiku support, patch by Paul Davey! X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=a43fc3452b4c5a853054b6b671eacbdd05039130;p=oota-llvm.git add haiku support, patch by Paul Davey! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84238 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/ADT/Triple.h b/include/llvm/ADT/Triple.h index 89736bcc456..7fb0014dc8a 100644 --- a/include/llvm/ADT/Triple.h +++ b/include/llvm/ADT/Triple.h @@ -95,7 +95,8 @@ public: NetBSD, OpenBSD, Solaris, - Win32 + Win32, + Haiku }; private: diff --git a/lib/Support/Triple.cpp b/lib/Support/Triple.cpp index 6f805da3329..26a1a4e5829 100644 --- a/lib/Support/Triple.cpp +++ b/lib/Support/Triple.cpp @@ -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 ""; @@ -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;