mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-24 23:28:41 +00:00
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:
@@ -86,6 +86,7 @@ public:
|
||||
IOS,
|
||||
Linux,
|
||||
Lv2, // PS3
|
||||
MacOSX,
|
||||
MinGW32, // i*86-pc-mingw32, *-w64-mingw32
|
||||
NetBSD,
|
||||
OSX,
|
||||
@@ -269,7 +270,8 @@ public:
|
||||
/// isOSX - Is this an OS X triple. For legacy reasons, we support both
|
||||
/// "darwin" and "osx" as OS X triples.
|
||||
bool isOSX() const {
|
||||
return getOS() == Triple::Darwin || getOS() == Triple::OSX;
|
||||
return getOS() == Triple::Darwin || getOS() == Triple::OSX ||
|
||||
getOS() == Triple::MacOSX;
|
||||
}
|
||||
|
||||
/// isOSDarwin - Is this a "Darwin" OS (OS X or iOS).
|
||||
@@ -291,7 +293,7 @@ public:
|
||||
assert(isOSX() && "Not an OS X triple!");
|
||||
|
||||
// If this is OS X, expect a sane version number.
|
||||
if (getOS() == Triple::OSX)
|
||||
if (getOS() == Triple::OSX || getOS() == Triple::MacOSX)
|
||||
return isOSVersionLT(Major, Minor, Micro);
|
||||
|
||||
// Otherwise, compare to the "Darwin" number.
|
||||
|
Reference in New Issue
Block a user