From: Eli Bendersky Date: Fri, 7 Dec 2012 00:01:53 +0000 (+0000) Subject: Add convenience accessor to Triple for OS == NaCl X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=105fdbb1312bac8c46ba2e28e9d6a70c0af151c8;p=oota-llvm.git Add convenience accessor to Triple for OS == NaCl git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@169565 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/ADT/Triple.h b/include/llvm/ADT/Triple.h index 57b2bb8c349..49d9f684041 100644 --- a/include/llvm/ADT/Triple.h +++ b/include/llvm/ADT/Triple.h @@ -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();