diff options
author | Daniel Dunbar <daniel@zuster.org> | 2011-04-19 21:07:03 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2011-04-19 21:07:03 +0000 |
commit | e8ba52d63968338f1b93f942083fa59a9e70eb51 (patch) | |
tree | cd8c22787284357dfd322375b62d2e72d786e475 /lib/Support/Triple.cpp | |
parent | 2cf711f1e69dc1d00d57814478c8eb12d97ce3a8 (diff) |
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
Diffstat (limited to 'lib/Support/Triple.cpp')
-rw-r--r-- | lib/Support/Triple.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Support/Triple.cpp b/lib/Support/Triple.cpp index 200bec3867..51f6c0787f 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(); |