Remove the confusing getDarwinNumber() api and friends.

Part of rdar://9714064

llvm-svn: 134291
This commit is contained in:
Eric Christopher 2011-07-02 00:19:55 +00:00
parent 6ea6623f23
commit 491e8d6593

View File

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