diff options
author | Evan Cheng <evan.cheng@apple.com> | 2007-02-23 03:14:31 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2007-02-23 03:14:31 +0000 |
commit | 04321f70f5075673934d5b1ed3353dd15d911183 (patch) | |
tree | 7b36105632d99b6df27e87824d694611104d8cf1 /lib/Target/ARM/ARMTargetMachine.h | |
parent | cdc694440b930e085cfff61fe5a22082ea63a7c0 (diff) | |
download | external_llvm-04321f70f5075673934d5b1ed3353dd15d911183.zip external_llvm-04321f70f5075673934d5b1ed3353dd15d911183.tar.gz external_llvm-04321f70f5075673934d5b1ed3353dd15d911183.tar.bz2 |
Added -march=thumb; removed -enable-thumb.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34521 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/ARMTargetMachine.h')
-rw-r--r-- | lib/Target/ARM/ARMTargetMachine.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/Target/ARM/ARMTargetMachine.h b/lib/Target/ARM/ARMTargetMachine.h index 9c888ea..7f45fb6 100644 --- a/lib/Target/ARM/ARMTargetMachine.h +++ b/lib/Target/ARM/ARMTargetMachine.h @@ -32,7 +32,7 @@ class ARMTargetMachine : public LLVMTargetMachine { ARMInstrInfo InstrInfo; ARMFrameInfo FrameInfo; public: - ARMTargetMachine(const Module &M, const std::string &FS); + ARMTargetMachine(const Module &M, const std::string &FS, bool isThumb = false); virtual const ARMInstrInfo *getInstrInfo() const { return &InstrInfo; } virtual const TargetFrameInfo *getFrameInfo() const { return &FrameInfo; } @@ -52,6 +52,15 @@ public: std::ostream &Out); }; +/// ThumbTargetMachine - Thumb target machine. +/// +class ThumbTargetMachine : public ARMTargetMachine { +public: + ThumbTargetMachine(const Module &M, const std::string &FS); + + static unsigned getModuleMatchQuality(const Module &M); +}; + } // end namespace llvm #endif |