From: Daniel Dunbar Date: Tue, 19 Apr 2011 21:07:03 +0000 (+0000) Subject: ADT/Triple: Fix Triple::getArchNameForAssembler to support OSX and iOS X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=e8ba52d63968338f1b93f942083fa59a9e70eb51;p=oota-llvm.git 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 --- diff --git a/lib/Support/Triple.cpp b/lib/Support/Triple.cpp index 200bec3867c..51f6c0787f2 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();