ADT/Triple: Add support for Triple::MacOSX per feedback from Chris, will remove

Triple::OSX once Clang has moved.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129833 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Daniel Dunbar
2011-04-19 23:34:12 +00:00
parent 912225e185
commit 1af394766f
2 changed files with 7 additions and 2 deletions

View File

@@ -102,6 +102,7 @@ const char *Triple::getOSTypeName(OSType Kind) {
case IOS: return "ios";
case Linux: return "linux";
case Lv2: return "lv2";
case MacOSX: return "macosx";
case MinGW32: return "mingw32";
case NetBSD: return "netbsd";
case OSX: return "osx";
@@ -322,6 +323,8 @@ Triple::OSType Triple::ParseOS(StringRef OSName) {
return Linux;
else if (OSName.startswith("lv2"))
return Lv2;
else if (OSName.startswith("macosx"))
return MacOSX;
else if (OSName.startswith("mingw32"))
return MinGW32;
else if (OSName.startswith("netbsd"))