diff options
author | Jim Laskey <jlaskey@mac.com> | 2006-09-07 23:39:26 +0000 |
---|---|---|
committer | Jim Laskey <jlaskey@mac.com> | 2006-09-07 23:39:26 +0000 |
commit | fde1b3bb2f15b74c713d98a79fcddaff1ac00dd1 (patch) | |
tree | 80b75444ec775521e8d803493cf95d5d41ddc300 /lib/Target/ARM/ARMTargetMachine.h | |
parent | f93f68347f06f6e12dd214c21436bfde55e66bf7 (diff) | |
download | external_llvm-fde1b3bb2f15b74c713d98a79fcddaff1ac00dd1.zip external_llvm-fde1b3bb2f15b74c713d98a79fcddaff1ac00dd1.tar.gz external_llvm-fde1b3bb2f15b74c713d98a79fcddaff1ac00dd1.tar.bz2 |
1. Remove condition on delete.
2. Protect and outline createTargetAsmInfo.
3. Misc. kruft.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30169 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/ARMTargetMachine.h')
-rw-r--r-- | lib/Target/ARM/ARMTargetMachine.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/Target/ARM/ARMTargetMachine.h b/lib/Target/ARM/ARMTargetMachine.h index bf8deba..b453f0b 100644 --- a/lib/Target/ARM/ARMTargetMachine.h +++ b/lib/Target/ARM/ARMTargetMachine.h @@ -20,7 +20,6 @@ #include "llvm/Target/TargetFrameInfo.h" #include "ARMInstrInfo.h" #include "ARMFrameInfo.h" -#include "ARMTargetAsmInfo.h" namespace llvm { @@ -30,6 +29,10 @@ class ARMTargetMachine : public LLVMTargetMachine { const TargetData DataLayout; // Calculates type size & alignment ARMInstrInfo InstrInfo; ARMFrameInfo FrameInfo; + +protected: + virtual const TargetAsmInfo *createTargetAsmInfo() const; + public: ARMTargetMachine(const Module &M, const std::string &FS); @@ -41,10 +44,6 @@ public: virtual const TargetData *getTargetData() const { return &DataLayout; } static unsigned getModuleMatchQuality(const Module &M); - virtual const TargetAsmInfo *createTargetAsmInfo() const { - return static_cast<const TargetAsmInfo *>(new ARMTargetAsmInfo(*this)); - } - // Pass Pipeline Configuration virtual bool addInstSelector(FunctionPassManager &PM, bool Fast); virtual bool addAssemblyEmitter(FunctionPassManager &PM, bool Fast, |