[llvm-commits] [llvm] r129798 - in /llvm/trunk: include/llvm/ADT/Triple.h lib/Support/Triple.cpp
Daniel Dunbar
daniel at zuster.org
Tue Apr 19 13:19:27 PDT 2011
Author: ddunbar
Date: Tue Apr 19 15:19:27 2011
New Revision: 129798
URL: http://llvm.org/viewvc/llvm-project?rev=129798&view=rev
Log:
ADT/Triple: Add support for more explicit "osx" and "ios" OS names.
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=129798&r1=129797&r2=129798&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ADT/Triple.h (original)
+++ llvm/trunk/include/llvm/ADT/Triple.h Tue Apr 19 15:19:27 2011
@@ -83,10 +83,12 @@
Darwin,
DragonFly,
FreeBSD,
+ IOS,
Linux,
Lv2, // PS3
MinGW32, // i*86-pc-mingw32, *-w64-mingw32
NetBSD,
+ OSX,
OpenBSD,
Psp,
Solaris,
Modified: llvm/trunk/lib/Support/Triple.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/Triple.cpp?rev=129798&r1=129797&r2=129798&view=diff
==============================================================================
--- llvm/trunk/lib/Support/Triple.cpp (original)
+++ llvm/trunk/lib/Support/Triple.cpp Tue Apr 19 15:19:27 2011
@@ -99,10 +99,12 @@
case Darwin: return "darwin";
case DragonFly: return "dragonfly";
case FreeBSD: return "freebsd";
+ case IOS: return "ios";
case Linux: return "linux";
case Lv2: return "lv2";
case MinGW32: return "mingw32";
case NetBSD: return "netbsd";
+ case OSX: return "osx";
case OpenBSD: return "openbsd";
case Psp: return "psp";
case Solaris: return "solaris";
@@ -314,6 +316,8 @@
return DragonFly;
else if (OSName.startswith("freebsd"))
return FreeBSD;
+ else if (OSName.startswith("ios"))
+ return IOS;
else if (OSName.startswith("linux"))
return Linux;
else if (OSName.startswith("lv2"))
@@ -322,6 +326,8 @@
return MinGW32;
else if (OSName.startswith("netbsd"))
return NetBSD;
+ else if (OSName.startswith("osx"))
+ return OSX;
else if (OSName.startswith("openbsd"))
return OpenBSD;
else if (OSName.startswith("psp"))
More information about the llvm-commits
mailing list