[llvm-commits] [llvm] r129814 - /llvm/trunk/lib/Support/Triple.cpp
Daniel Dunbar
daniel at zuster.org
Tue Apr 19 14:07:03 PDT 2011
Author: ddunbar
Date: Tue Apr 19 16:07:03 2011
New Revision: 129814
URL: http://llvm.org/viewvc/llvm-project?rev=129814&view=rev
Log:
ADT/Triple: Fix Triple::getArchNameForAssembler to support OSX and iOS
enumeration values.
Modified:
llvm/trunk/lib/Support/Triple.cpp
Modified: llvm/trunk/lib/Support/Triple.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/Triple.cpp?rev=129814&r1=129813&r2=129814&view=diff
==============================================================================
--- llvm/trunk/lib/Support/Triple.cpp (original)
+++ llvm/trunk/lib/Support/Triple.cpp Tue Apr 19 16:07:03 2011
@@ -213,7 +213,8 @@
// 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();
More information about the llvm-commits
mailing list