[llvm-commits] [llvm] r84238 - in /llvm/trunk: include/llvm/ADT/Triple.h lib/Support/Triple.cpp
Chris Lattner
sabre at nondot.org
Thu Oct 15 19:06:31 PDT 2009
Author: lattner
Date: Thu Oct 15 21:06:30 2009
New Revision: 84238
URL: http://llvm.org/viewvc/llvm-project?rev=84238&view=rev
Log:
add haiku support, patch by Paul Davey!
Modified:
llvm/trunk/include/llvm/ADT/Triple.h
llvm/trunk/lib/Support/Triple.cpp
Modified: llvm/trunk/include/llvm/ADT/Triple.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/Triple.h?rev=84238&r1=84237&r2=84238&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ADT/Triple.h (original)
+++ llvm/trunk/include/llvm/ADT/Triple.h Thu Oct 15 21:06:30 2009
@@ -95,7 +95,8 @@
NetBSD,
OpenBSD,
Solaris,
- Win32
+ Win32,
+ Haiku
};
private:
Modified: llvm/trunk/lib/Support/Triple.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/Triple.cpp?rev=84238&r1=84237&r2=84238&view=diff
==============================================================================
--- llvm/trunk/lib/Support/Triple.cpp (original)
+++ llvm/trunk/lib/Support/Triple.cpp Thu Oct 15 21:06:30 2009
@@ -96,6 +96,7 @@
case OpenBSD: return "openbsd";
case Solaris: return "solaris";
case Win32: return "win32";
+ case Haiku: return "haiku";
}
return "<invalid>";
@@ -276,6 +277,8 @@
OS = Solaris;
else if (OSName.startswith("win32"))
OS = Win32;
+ else if (OSName.startswith("haiku"))
+ OS = Haiku;
else
OS = UnknownOS;
More information about the llvm-commits
mailing list