mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-05 03:36:43 +00:00
Remove the confusing getDarwinNumber() api and friends.
Part of rdar://9714064 llvm-svn: 134291
This commit is contained in:
parent
6ea6623f23
commit
491e8d6593
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user