summaryrefslogtreecommitdiff
path: root/lib/Support/Triple.cpp
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
commite1fe09f6826f158def69cff89f3ce4e67e199bb5 (patch)
treef0d3b3a6315013b9d079bee352f9f2c36526c9e5 /lib/Support/Triple.cpp
parente8ba52d63968338f1b93f942083fa59a9e70eb51 (diff)
downloadllvm-e1fe09f6826f158def69cff89f3ce4e67e199bb5.tar.gz
llvm-e1fe09f6826f158def69cff89f3ce4e67e199bb5.tar.bz2
llvm-e1fe09f6826f158def69cff89f3ce4e67e199bb5.tar.xz
ADT/Triple: Add isOSDarwin() and isOSWindows() helper functions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129815 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/Triple.cpp')
-rw-r--r--lib/Support/Triple.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Support/Triple.cpp b/lib/Support/Triple.cpp
index 51f6c0787f..8281b483c9 100644
--- a/lib/Support/Triple.cpp
+++ b/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();