summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/Triple.cpp
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/lib/Support/Triple.cpp
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/lib/Support/Triple.cpp')
-rw-r--r--llvm/lib/Support/Triple.cpp3
1 files changed, 3 insertions, 0 deletions
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