[llvm-commits] [llvm] r133002 - /llvm/trunk/lib/Target/ARM/ARMAsmBackend.cpp
Evan Cheng
evan.cheng at apple.com
Tue Jun 14 11:08:33 PDT 2011
Author: evancheng
Date: Tue Jun 14 13:08:33 2011
New Revision: 133002
URL: http://llvm.org/viewvc/llvm-project?rev=133002&view=rev
Log:
Also recognize ARM v4t and v5e variants.
Modified:
llvm/trunk/lib/Target/ARM/ARMAsmBackend.cpp
Modified: llvm/trunk/lib/Target/ARM/ARMAsmBackend.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMAsmBackend.cpp?rev=133002&r1=133001&r2=133002&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMAsmBackend.cpp (original)
+++ llvm/trunk/lib/Target/ARM/ARMAsmBackend.cpp Tue Jun 14 13:08:33 2011
@@ -505,7 +505,13 @@
Triple TheTriple(TT);
if (TheTriple.isOSDarwin()) {
- if (TheTriple.getArchName() == "armv6" ||
+ if (TheTriple.getArchName() == "armv4t" ||
+ TheTriple.getArchName() == "thumbv4t")
+ return new DarwinARMAsmBackend(T, object::mach::CSARM_V4T);
+ else if (TheTriple.getArchName() == "armv5e" ||
+ TheTriple.getArchName() == "thumbv5e")
+ return new DarwinARMAsmBackend(T, object::mach::CSARM_V5TEJ);
+ else if (TheTriple.getArchName() == "armv6" ||
TheTriple.getArchName() == "thumbv6")
return new DarwinARMAsmBackend(T, object::mach::CSARM_V6);
return new DarwinARMAsmBackend(T, object::mach::CSARM_V7);
More information about the llvm-commits
mailing list