projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9ddc304
)
Add convenience accessor to Triple for OS == NaCl
author
Eli Bendersky
<eliben@google.com>
Fri, 7 Dec 2012 00:01:53 +0000
(
00:01
+0000)
committer
Eli Bendersky
<eliben@google.com>
Fri, 7 Dec 2012 00:01:53 +0000
(
00:01
+0000)
llvm-svn: 169565
llvm/include/llvm/ADT/Triple.h
patch
|
blob
|
history
diff --git
a/llvm/include/llvm/ADT/Triple.h
b/llvm/include/llvm/ADT/Triple.h
index
57b2bb8
..
49d9f68
100644
(file)
--- a/
llvm/include/llvm/ADT/Triple.h
+++ b/
llvm/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();