mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-01 15:11:24 +00:00
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
This commit is contained in:
parent
2cf711f1e6
commit
e8ba52d639
@ -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