llvm.org GIT mirror llvm / 1af3947
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 Daniel Dunbar 9 years ago
2 changed file(s) with 7 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
8585 IOS,
8686 Linux,
8787 Lv2, // PS3
88 MacOSX,
8889 MinGW32, // i*86-pc-mingw32, *-w64-mingw32
8990 NetBSD,
9091 OSX,
268269 /// isOSX - Is this an OS X triple. For legacy reasons, we support both
269270 /// "darwin" and "osx" as OS X triples.
270271 bool isOSX() const {
271 return getOS() == Triple::Darwin || getOS() == Triple::OSX;
272 return getOS() == Triple::Darwin || getOS() == Triple::OSX ||
273 getOS() == Triple::MacOSX;
272274 }
273275
274276 /// isOSDarwin - Is this a "Darwin" OS (OS X or iOS).
290292 assert(isOSX() && "Not an OS X triple!");
291293
292294 // If this is OS X, expect a sane version number.
293 if (getOS() == Triple::OSX)
295 if (getOS() == Triple::OSX || getOS() == Triple::MacOSX)
294296 return isOSVersionLT(Major, Minor, Micro);
295297
296298 // Otherwise, compare to the "Darwin" number.
101101 case IOS: return "ios";
102102 case Linux: return "linux";
103103 case Lv2: return "lv2";
104 case MacOSX: return "macosx";
104105 case MinGW32: return "mingw32";
105106 case NetBSD: return "netbsd";
106107 case OSX: return "osx";
321322 return Linux;
322323 else if (OSName.startswith("lv2"))
323324 return Lv2;
325 else if (OSName.startswith("macosx"))
326 return MacOSX;
324327 else if (OSName.startswith("mingw32"))
325328 return MinGW32;
326329 else if (OSName.startswith("netbsd"))