mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-15 16:07:49 +00:00
Encapsulate testing that we have an iOS Triple in Triple.h in the method isiOS
so we follow the convention that all other platforms follow by having an is* test method. llvm-svn: 173983
This commit is contained in:
parent
045f95da4a
commit
2a32ac5a3e
@ -296,9 +296,14 @@ public:
|
||||
return getOS() == Triple::Darwin || getOS() == Triple::MacOSX;
|
||||
}
|
||||
|
||||
/// Is this an iOS triple.
|
||||
bool isiOS() const {
|
||||
return getOS() == Triple::IOS;
|
||||
}
|
||||
|
||||
/// isOSDarwin - Is this a "Darwin" OS (OS X or iOS).
|
||||
bool isOSDarwin() const {
|
||||
return isMacOSX() || getOS() == Triple::IOS;
|
||||
return isMacOSX() || isiOS();
|
||||
}
|
||||
|
||||
/// \brief Tests for either Cygwin or MinGW OS
|
||||
|
Loading…
x
Reference in New Issue
Block a user