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:
Daniel Dunbar
2011-04-20 00:14:25 +00:00
parent 4aaf3465f7
commit 558692fd0a
9 changed files with 24 additions and 22 deletions

View File

@ -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)