[llvm-commits] [llvm] r138501 - /llvm/trunk/lib/Target/ARM/MCTargetDesc/ARMAsmBackend.cpp
Jim Grosbach
grosbach at apple.com
Wed Aug 24 15:27:35 PDT 2011
Author: grosbach
Date: Wed Aug 24 17:27:35 2011
New Revision: 138501
URL: http://llvm.org/viewvc/llvm-project?rev=138501&view=rev
Log:
ARM asm backend initialize isThumbMode based on target triple.
Modified:
llvm/trunk/lib/Target/ARM/MCTargetDesc/ARMAsmBackend.cpp
Modified: llvm/trunk/lib/Target/ARM/MCTargetDesc/ARMAsmBackend.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/MCTargetDesc/ARMAsmBackend.cpp?rev=138501&r1=138500&r2=138501&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/MCTargetDesc/ARMAsmBackend.cpp (original)
+++ llvm/trunk/lib/Target/ARM/MCTargetDesc/ARMAsmBackend.cpp Wed Aug 24 17:27:35 2011
@@ -42,7 +42,7 @@
public:
ARMAsmBackend(const Target &T, const StringRef TT)
: MCAsmBackend(), STI(ARM_MC::createARMMCSubtargetInfo(TT, "", "")),
- isThumbMode(false) {}
+ isThumbMode(TT.startswith("thumb")) {}
~ARMAsmBackend() {
delete STI;
More information about the llvm-commits
mailing list