summaryrefslogtreecommitdiff
path: root/lib/Support/Triple.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2011-04-19 21:07:03 +0000
committerDaniel Dunbar <daniel@zuster.org>2011-04-19 21:07:03 +0000
commite8ba52d63968338f1b93f942083fa59a9e70eb51 (patch)
treecd8c22787284357dfd322375b62d2e72d786e475 /lib/Support/Triple.cpp
parent2cf711f1e69dc1d00d57814478c8eb12d97ce3a8 (diff)
downloadllvm-e8ba52d63968338f1b93f942083fa59a9e70eb51.tar.gz
llvm-e8ba52d63968338f1b93f942083fa59a9e70eb51.tar.bz2
llvm-e8ba52d63968338f1b93f942083fa59a9e70eb51.tar.xz
ADT/Triple: Fix Triple::getArchNameForAssembler to support OSX and iOS
enumeration values. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129814 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/Triple.cpp')
-rw-r--r--lib/Support/Triple.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Support/Triple.cpp b/lib/Support/Triple.cpp
index 200bec3867..51f6c0787f 100644
--- a/lib/Support/Triple.cpp
+++ b/lib/Support/Triple.cpp
@@ -213,7 +213,8 @@ Triple::ArchType Triple::getArchTypeForDarwinArchName(StringRef Str) {
// Returns architecture name that is understood by the target assembler.
const char *Triple::getArchNameForAssembler() {
- if (getOS() != Triple::Darwin && getVendor() != Triple::Apple)
+ if (getOS() != Triple::Darwin && getOS() != Triple::OSX &&
+ getOS() != Triple::IOS && getVendor() != Triple::Apple)
return NULL;
StringRef Str = getArchName();