[llvm-commits] [llvm] r73766 - in /llvm/trunk: include/llvm/ADT/Triple.h lib/Support/Triple.cpp
Duncan Sands
baldrick at free.fr
Fri Jun 19 07:40:08 PDT 2009
Author: baldrick
Date: Fri Jun 19 09:40:01 2009
New Revision: 73766
URL: http://llvm.org/viewvc/llvm-project?rev=73766&view=rev
Log:
Add support for AuroraUX. Patch by evocallaghan.
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=73766&r1=73765&r2=73766&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ADT/Triple.h (original)
+++ llvm/trunk/include/llvm/ADT/Triple.h Fri Jun 19 09:40:01 2009
@@ -49,6 +49,7 @@
enum OSType {
UnknownOS,
+ AuroraUX,
Darwin,
DragonFly,
FreeBSD,
Modified: llvm/trunk/lib/Support/Triple.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/Triple.cpp?rev=73766&r1=73765&r2=73766&view=diff
==============================================================================
--- llvm/trunk/lib/Support/Triple.cpp (original)
+++ llvm/trunk/lib/Support/Triple.cpp Fri Jun 19 09:40:01 2009
@@ -43,6 +43,7 @@
switch (Kind) {
case UnknownOS: return "unknown";
+ case AuroraUX: return "auroraux";
case Darwin: return "darwin";
case DragonFly: return "dragonfly";
case FreeBSD: return "freebsd";
@@ -79,7 +80,9 @@
Vendor = UnknownVendor;
std::string OSName = getOSName();
- if (memcmp(&OSName[0], "darwin", 6) == 0)
+ if (memcmp(&OSName[0], "auroraux", 8) == 0)
+ OS = AuroraUX;
+ else if (memcmp(&OSName[0], "darwin", 6) == 0)
OS = Darwin;
else if (memcmp(&OSName[0], "dragonfly", 9) == 0)
OS = DragonFly;
More information about the llvm-commits
mailing list