ARM asm backend initialize isThumbMode based on target triple.

llvm-svn: 138501
This commit is contained in:
Jim Grosbach 2011-08-24 22:27:35 +00:00
parent 838ed3af46
commit 21a60b6f90
1 changed files with 1 additions and 1 deletions

View File

@ -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;