summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-10-16 02:06:30 +0000
committerChris Lattner <sabre@nondot.org>2009-10-16 02:06:30 +0000
commita43fc3452b4c5a853054b6b671eacbdd05039130 (patch)
treef66b98452b5e1962f304e665993989512820f905 /lib
parenta4d8667c870759a70aa9bea99e64b7f7e938b1a1 (diff)
downloadllvm-a43fc3452b4c5a853054b6b671eacbdd05039130.tar.gz
llvm-a43fc3452b4c5a853054b6b671eacbdd05039130.tar.bz2
llvm-a43fc3452b4c5a853054b6b671eacbdd05039130.tar.xz
add haiku support, patch by Paul Davey!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84238 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Support/Triple.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Support/Triple.cpp b/lib/Support/Triple.cpp
index 6f805da332..26a1a4e582 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 "<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;