diff options
author | Daniel Dunbar <daniel@zuster.org> | 2011-04-20 00:14:25 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2011-04-20 00:14:25 +0000 |
commit | 558692fd0a31d4d3ae4fd09a3a02f80da2e44e5c (patch) | |
tree | b091c8cac7cf9dda382e4539f65b5c1a6818fc03 /include/llvm/ADT/Triple.h | |
parent | 4aaf3465f71afa4e156eb15df12095ebde1b0f6f (diff) |
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
Diffstat (limited to 'include/llvm/ADT/Triple.h')
-rw-r--r-- | include/llvm/ADT/Triple.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/include/llvm/ADT/Triple.h b/include/llvm/ADT/Triple.h index 2f427c02dd..4cfad31df5 100644 --- a/include/llvm/ADT/Triple.h +++ b/include/llvm/ADT/Triple.h @@ -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) |