OSDN Git Service

add isThumb (unused as yet)
authorDale Johannesen <dalej@apple.com>
Mon, 23 Apr 2007 20:04:35 +0000 (20:04 +0000)
committerDale Johannesen <dalej@apple.com>
Mon, 23 Apr 2007 20:04:35 +0000 (20:04 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36370 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/ARM/ARMTargetAsmInfo.cpp
lib/Target/ARM/ARMTargetAsmInfo.h

index dfb78e8..4524041 100644 (file)
@@ -13,6 +13,8 @@
 
 #include "ARMTargetAsmInfo.h"
 #include "ARMTargetMachine.h"
+#include <cstring>
+#include <cctype>
 using namespace llvm;
 
 ARMTargetAsmInfo::ARMTargetAsmInfo(const ARMTargetMachine &TM) {
@@ -80,4 +82,5 @@ ARMTargetAsmInfo::ARMTargetAsmInfo(const ARMTargetMachine &TM) {
   InlineAsmStart = "@ InlineAsm Start";
   InlineAsmEnd = "@ InlineAsm End";
   LCOMMDirective = "\t.lcomm\t";
+  isThumb = Subtarget->isThumb();
 }
index 4edb1d2..3fb9bb0 100644 (file)
@@ -23,6 +23,8 @@ namespace llvm {
 
   struct ARMTargetAsmInfo : public TargetAsmInfo {
     ARMTargetAsmInfo(const ARMTargetMachine &TM);
+
+    bool isThumb;
   };