mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-07 12:28:24 +00:00
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
This commit is contained in:
@@ -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.
|
||||
|
Reference in New Issue
Block a user