diff options
author | Dale Johannesen <dalej@apple.com> | 2007-04-23 20:04:35 +0000 |
---|---|---|
committer | Dale Johannesen <dalej@apple.com> | 2007-04-23 20:04:35 +0000 |
commit | 24fb52da3c797eaa9dc6315ef8c4713ed556daa0 (patch) | |
tree | 203838027eb461e3c8e655c53e57fe96d4359b91 | |
parent | 3bb6283eead6813e87e018879e7cedde3955ea83 (diff) |
add isThumb (unused as yet)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36370 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Target/ARM/ARMTargetAsmInfo.cpp | 3 | ||||
-rw-r--r-- | lib/Target/ARM/ARMTargetAsmInfo.h | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/lib/Target/ARM/ARMTargetAsmInfo.cpp b/lib/Target/ARM/ARMTargetAsmInfo.cpp index dfb78e8db9..4524041fa4 100644 --- a/lib/Target/ARM/ARMTargetAsmInfo.cpp +++ b/lib/Target/ARM/ARMTargetAsmInfo.cpp @@ -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(); } diff --git a/lib/Target/ARM/ARMTargetAsmInfo.h b/lib/Target/ARM/ARMTargetAsmInfo.h index 4edb1d2e43..3fb9bb0066 100644 --- a/lib/Target/ARM/ARMTargetAsmInfo.h +++ b/lib/Target/ARM/ARMTargetAsmInfo.h @@ -23,6 +23,8 @@ namespace llvm { struct ARMTargetAsmInfo : public TargetAsmInfo { ARMTargetAsmInfo(const ARMTargetMachine &TM); + + bool isThumb; }; |