From b9d3ff872908bcf648b826c1c48db2cacd813b95 Mon Sep 17 00:00:00 2001 From: Jim Grosbach Date: Wed, 24 Aug 2011 22:27:35 +0000 Subject: [PATCH] ARM asm backend initialize isThumbMode based on target triple. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@138501 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/ARM/MCTargetDesc/ARMAsmBackend.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Target/ARM/MCTargetDesc/ARMAsmBackend.cpp b/lib/Target/ARM/MCTargetDesc/ARMAsmBackend.cpp index 8520c3fe4c4..7f3587c5b37 100644 --- a/lib/Target/ARM/MCTargetDesc/ARMAsmBackend.cpp +++ b/lib/Target/ARM/MCTargetDesc/ARMAsmBackend.cpp @@ -42,7 +42,7 @@ class ARMAsmBackend : public MCAsmBackend { public: ARMAsmBackend(const Target &T, const StringRef TT) : MCAsmBackend(), STI(ARM_MC::createARMMCSubtargetInfo(TT, "", "")), - isThumbMode(false) {} + isThumbMode(TT.startswith("thumb")) {} ~ARMAsmBackend() { delete STI;