mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-23 17:24:48 +00:00
ADT/Triple: Renambe isOSX... methods to isMacOSX for consistency with the OS
triple component. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129838 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -266,15 +266,15 @@ public:
|
||||
return false;
|
||||
}
|
||||
|
||||
/// isOSX - Is this an OS X triple. For legacy reasons, we support both
|
||||
/// isMacOSX - Is this a Mac OS X triple. For legacy reasons, we support both
|
||||
/// "darwin" and "osx" as OS X triples.
|
||||
bool isOSX() const {
|
||||
bool isMacOSX() const {
|
||||
return getOS() == Triple::Darwin || getOS() == Triple::MacOSX;
|
||||
}
|
||||
|
||||
/// isOSDarwin - Is this a "Darwin" OS (OS X or iOS).
|
||||
bool isOSDarwin() const {
|
||||
return isOSX() ||getOS() == Triple::IOS;
|
||||
return isMacOSX() ||getOS() == Triple::IOS;
|
||||
}
|
||||
|
||||
/// isOSWindows - Is this a "Windows" OS.
|
||||
@ -283,12 +283,12 @@ public:
|
||||
getOS() == Triple::MinGW32;
|
||||
}
|
||||
|
||||
/// isOSXVersionLT - Comparison function for checking OS X version
|
||||
/// isMacOSXVersionLT - Comparison function for checking OS X version
|
||||
/// compatibility, which handles supporting skewed version numbering schemes
|
||||
/// used by the "darwin" triples.
|
||||
unsigned isOSXVersionLT(unsigned Major, unsigned Minor = 0,
|
||||
unsigned isMacOSXVersionLT(unsigned Major, unsigned Minor = 0,
|
||||
unsigned Micro = 0) const {
|
||||
assert(isOSX() && "Not an OS X triple!");
|
||||
assert(isMacOSX() && "Not an OS X triple!");
|
||||
|
||||
// If this is OS X, expect a sane version number.
|
||||
if (getOS() == Triple::MacOSX)
|
||||
|
Reference in New Issue
Block a user