[llvm-commits] [llvm] r169565 - /llvm/trunk/include/llvm/ADT/Triple.h
Eli Bendersky
eliben at google.com
Thu Dec 6 16:01:54 PST 2012
Author: eliben
Date: Thu Dec 6 18:01:53 2012
New Revision: 169565
URL: http://llvm.org/viewvc/llvm-project?rev=169565&view=rev
Log:
Add convenience accessor to Triple for OS == NaCl
Modified:
llvm/trunk/include/llvm/ADT/Triple.h
Modified: llvm/trunk/include/llvm/ADT/Triple.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/Triple.h?rev=169565&r1=169564&r2=169565&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ADT/Triple.h (original)
+++ llvm/trunk/include/llvm/ADT/Triple.h Thu Dec 6 18:01:53 2012
@@ -310,6 +310,11 @@
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();
More information about the llvm-commits
mailing list