diff options
author | Eli Bendersky <eliben@google.com> | 2012-12-07 00:01:53 +0000 |
---|---|---|
committer | Eli Bendersky <eliben@google.com> | 2012-12-07 00:01:53 +0000 |
commit | 105fdbb1312bac8c46ba2e28e9d6a70c0af151c8 (patch) | |
tree | e6cdb809a4c9493c0b3f7a0ced2e97f71974c815 | |
parent | e40aecf037a60e2c30f29c322eb09bd7da0fe0a9 (diff) |
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
-rw-r--r-- | include/llvm/ADT/Triple.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/ADT/Triple.h b/include/llvm/ADT/Triple.h index 57b2bb8c34..49d9f68404 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(); |