diff options
author | Eric Christopher <echristo@apple.com> | 2011-07-02 00:19:55 +0000 |
---|---|---|
committer | Eric Christopher <echristo@apple.com> | 2011-07-02 00:19:55 +0000 |
commit | 4d59ff95d8f28089dce9997a38a334c18f50a641 (patch) | |
tree | be2f17d28c207621828abb995cb10fa346d89651 /include | |
parent | c20fb63ebdbc8caec4566eaa7bc5be7f0a14cca1 (diff) | |
download | external_llvm-4d59ff95d8f28089dce9997a38a334c18f50a641.zip external_llvm-4d59ff95d8f28089dce9997a38a334c18f50a641.tar.gz external_llvm-4d59ff95d8f28089dce9997a38a334c18f50a641.tar.bz2 |
Remove the confusing getDarwinNumber() api and friends.
Part of rdar://9714064
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134291 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/ADT/Triple.h | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/include/llvm/ADT/Triple.h b/include/llvm/ADT/Triple.h index 66861a1..fd23608 100644 --- a/include/llvm/ADT/Triple.h +++ b/include/llvm/ADT/Triple.h @@ -238,19 +238,10 @@ public: /// specialized because it is a common query. unsigned getOSMajorVersion() const { unsigned Maj, Min, Micro; - getDarwinNumber(Maj, Min, Micro); + getOSVersion(Maj, Min, Micro); return Maj; } - void getDarwinNumber(unsigned &Major, unsigned &Minor, - unsigned &Micro) const { - return getOSVersion(Major, Minor, Micro); - } - - unsigned getDarwinMajorNumber() const { - return getOSMajorVersion(); - } - /// isOSVersionLT - Helper function for doing comparisons against version /// numbers included in the target triple. bool isOSVersionLT(unsigned Major, unsigned Minor = 0, @@ -276,7 +267,7 @@ public: /// isOSDarwin - Is this a "Darwin" OS (OS X or iOS). bool isOSDarwin() const { - return isMacOSX() ||getOS() == Triple::IOS; + return isMacOSX() || getOS() == Triple::IOS; } /// isOSWindows - Is this a "Windows" OS. @@ -289,7 +280,7 @@ public: /// compatibility, which handles supporting skewed version numbering schemes /// used by the "darwin" triples. unsigned isMacOSXVersionLT(unsigned Major, unsigned Minor = 0, - unsigned Micro = 0) const { + unsigned Micro = 0) const { assert(isMacOSX() && "Not an OS X triple!"); // If this is OS X, expect a sane version number. @@ -300,7 +291,7 @@ public: assert(Major == 10 && "Unexpected major version"); return isOSVersionLT(Minor + 4, Micro, 0); } - + /// @} /// @name Mutators /// @{ |