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:
a46db77
)
Encapsulate testing that we have an iOS Triple in Triple.h in the method isiOS
author
Michael Gottesman
<mgottesman@apple.com>
Wed, 30 Jan 2013 22:38:19 +0000
(22:38 +0000)
committer
Michael Gottesman
<mgottesman@apple.com>
Wed, 30 Jan 2013 22:38:19 +0000
(22:38 +0000)
so we follow the convention that all other platforms follow by having an is*
test method.
llvm-svn: 173983
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
7968a12
..
e987ffc
100644
(file)
--- a/
llvm/include/llvm/ADT/Triple.h
+++ b/
llvm/include/llvm/ADT/Triple.h
@@
-296,9
+296,14
@@
public:
return getOS() == Triple::Darwin || getOS() == Triple::MacOSX;
}
+ /// Is this an iOS triple.
+ bool isiOS() const {
+ return getOS() == Triple::IOS;
+ }
+
/// isOSDarwin - Is this a "Darwin" OS (OS X or iOS).
bool isOSDarwin() const {
- return isMacOSX() ||
getOS() == Triple::IOS
;
+ return isMacOSX() ||
isiOS()
;
}
/// \brief Tests for either Cygwin or MinGW OS