llvm.org GIT mirror llvm / e8ba52d
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 Daniel Dunbar 9 years ago
1 changed file(s) with 2 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
212212
213213 // Returns architecture name that is understood by the target assembler.
214214 const char *Triple::getArchNameForAssembler() {
215 if (getOS() != Triple::Darwin && getVendor() != Triple::Apple)
215 if (getOS() != Triple::Darwin && getOS() != Triple::OSX &&
216 getOS() != Triple::IOS && getVendor() != Triple::Apple)
216217 return NULL;
217218
218219 StringRef Str = getArchName();