mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-25 21:18:19 +00:00
ADT/Triple: Add support for more explicit "osx" and "ios" OS names.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129798 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -99,10 +99,12 @@ const char *Triple::getOSTypeName(OSType Kind) {
|
||||
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 @@ Triple::OSType Triple::ParseOS(StringRef OSName) {
|
||||
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 @@ Triple::OSType Triple::ParseOS(StringRef OSName) {
|
||||
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"))
|
||||
|
||||
Reference in New Issue
Block a user