summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2011-04-19 21:12:05 +0000
committerDaniel Dunbar <daniel@zuster.org>2011-04-19 21:12:05 +0000
commit163a0966a92bb989b1d91c59be5943a4f2988cf7 (patch)
treed399adcdc5ca6b6a14df0e1418d6797c47377762 /llvm/lib/Support
parent3c0fbce10b20609422c2ee50081cc1dcf39a9c69 (diff)
downloadbcm5719-llvm-163a0966a92bb989b1d91c59be5943a4f2988cf7.tar.gz
bcm5719-llvm-163a0966a92bb989b1d91c59be5943a4f2988cf7.zip
ADT/Triple: Add isOSDarwin() and isOSWindows() helper functions.
llvm-svn: 129815
Diffstat (limited to 'llvm/lib/Support')
-rw-r--r--llvm/lib/Support/Triple.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Support/Triple.cpp b/llvm/lib/Support/Triple.cpp
index 51f6c0787f2..8281b483c95 100644
--- a/llvm/lib/Support/Triple.cpp
+++ b/llvm/lib/Support/Triple.cpp
@@ -213,8 +213,7 @@ Triple::ArchType Triple::getArchTypeForDarwinArchName(StringRef Str) {
// Returns architecture name that is understood by the target assembler.
const char *Triple::getArchNameForAssembler() {
- if (getOS() != Triple::Darwin && getOS() != Triple::OSX &&
- getOS() != Triple::IOS && getVendor() != Triple::Apple)
+ if (!isOSDarwin() && getVendor() != Triple::Apple)
return NULL;
StringRef Str = getArchName();
OpenPOWER on IntegriCloud