1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 12:41:49 +01:00

Add convenience accessor to Triple for OS == NaCl

llvm-svn: 169565
This commit is contained in:
Eli Bendersky 2012-12-07 00:01:53 +00:00
parent 8388a78977
commit 2769418827

View File

@ -310,6 +310,11 @@ public:
return getOS() == Triple::Win32 || isOSCygMing();
}
/// \brief Tests whether the OS is NaCl (Native Client)
bool isOSNaCl() const {
return getOS() == Triple::NaCl;
}
/// \brief Tests whether the OS uses the ELF binary format.
bool isOSBinFormatELF() const {
return !isOSDarwin() && !isOSWindows();