mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-26 21:00:29 +00:00
ADT/Triple: Fix Triple::getArchNameForAssembler to support OSX and iOS
enumeration values. llvm-svn: 129814
This commit is contained in:
parent
a90cba45c7
commit
0fa8b6f591
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user