From 27f20493057dafbf1ae719338641e994010aace5 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 16 Oct 2009 02:06:30 +0000 Subject: [PATCH] add haiku support, patch by Paul Davey! llvm-svn: 84238 --- llvm/include/llvm/ADT/Triple.h | 3 ++- llvm/lib/Support/Triple.cpp | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/llvm/include/llvm/ADT/Triple.h b/llvm/include/llvm/ADT/Triple.h index 89736bcc4565..7fb0014dc8a5 100644 --- a/llvm/include/llvm/ADT/Triple.h +++ b/llvm/include/llvm/ADT/Triple.h @@ -95,7 +95,8 @@ public: NetBSD, OpenBSD, Solaris, - Win32 + Win32, + Haiku }; private: diff --git a/llvm/lib/Support/Triple.cpp b/llvm/lib/Support/Triple.cpp index 6f805da33299..26a1a4e58296 100644 --- a/llvm/lib/Support/Triple.cpp +++ b/llvm/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;