summaryrefslogtreecommitdiffstats
path: root/llvm
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
commit27f20493057dafbf1ae719338641e994010aace5 (patch)
tree45733fa83348852e22e47da09e2434c004580c3d /llvm
parentf847117ac800e46780f85de2f04c594c86b358c8 (diff)
downloadbcm5719-llvm-27f20493057dafbf1ae719338641e994010aace5.tar.gz
bcm5719-llvm-27f20493057dafbf1ae719338641e994010aace5.zip
add haiku support, patch by Paul Davey!
llvm-svn: 84238
Diffstat (limited to 'llvm')
-rw-r--r--llvm/include/llvm/ADT/Triple.h3
-rw-r--r--llvm/lib/Support/Triple.cpp3
2 files changed, 5 insertions, 1 deletions
diff --git a/llvm/include/llvm/ADT/Triple.h b/llvm/include/llvm/ADT/Triple.h
index 89736bcc456..7fb0014dc8a 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 6f805da3329..26a1a4e5829 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 "<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;
OpenPOWER on IntegriCloud