ADT/Triple: Fix Triple::getArchNameForAssembler to support OSX and iOS

enumeration values.

llvm-svn: 129814
This commit is contained in:
Daniel Dunbar 2011-04-19 21:07:03 +00:00
parent a90cba45c7
commit 0fa8b6f591

View File

@ -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();