summaryrefslogtreecommitdiffstats
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
commit3c0fbce10b20609422c2ee50081cc1dcf39a9c69 (patch)
treea50e07db6f6eae06a2e08f5aedbaa5fe00754fda
parent100455a3c84fc557f0bc41f134ff4165e020dedf (diff)
downloadbcm5719-llvm-3c0fbce10b20609422c2ee50081cc1dcf39a9c69.tar.gz
bcm5719-llvm-3c0fbce10b20609422c2ee50081cc1dcf39a9c69.zip
ADT/Triple: Fix Triple::getArchNameForAssembler to support OSX and iOS
enumeration values. llvm-svn: 129814
-rw-r--r--llvm/lib/Support/Triple.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Support/Triple.cpp b/llvm/lib/Support/Triple.cpp
index 200bec3867c..51f6c0787f2 100644
--- a/llvm/lib/Support/Triple.cpp
+++ b/llvm/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();
OpenPOWER on IntegriCloud