llvm.org GIT mirror llvm / 398a5ca
ADT/Triple: Drop support for -osx style triples, we are going with -macosx instead. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129836 91177308-0d34-0410-b5e6-96231b3b80d8 Daniel Dunbar 9 years ago
2 changed file(s) with 2 addition(s) and 7 deletion(s). Raw diff Collapse all Expand all
8888 MacOSX,
8989 MinGW32, // i*86-pc-mingw32, *-w64-mingw32
9090 NetBSD,
91 OSX,
9291 OpenBSD,
9392 Psp,
9493 Solaris,
269268 /// isOSX - Is this an OS X triple. For legacy reasons, we support both
270269 /// "darwin" and "osx" as OS X triples.
271270 bool isOSX() const {
272 return getOS() == Triple::Darwin || getOS() == Triple::OSX ||
273 getOS() == Triple::MacOSX;
271 return getOS() == Triple::Darwin || getOS() == Triple::MacOSX;
274272 }
275273
276274 /// isOSDarwin - Is this a "Darwin" OS (OS X or iOS).
292290 assert(isOSX() && "Not an OS X triple!");
293291
294292 // If this is OS X, expect a sane version number.
295 if (getOS() == Triple::OSX || getOS() == Triple::MacOSX)
293 if (getOS() == Triple::MacOSX)
296294 return isOSVersionLT(Major, Minor, Micro);
297295
298296 // Otherwise, compare to the "Darwin" number.
104104 case MacOSX: return "macosx";
105105 case MinGW32: return "mingw32";
106106 case NetBSD: return "netbsd";
107 case OSX: return "osx";
108107 case OpenBSD: return "openbsd";
109108 case Psp: return "psp";
110109 case Solaris: return "solaris";
328327 return MinGW32;
329328 else if (OSName.startswith("netbsd"))
330329 return NetBSD;
331 else if (OSName.startswith("osx"))
332 return OSX;
333330 else if (OSName.startswith("openbsd"))
334331 return OpenBSD;
335332 else if (OSName.startswith("psp"))