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/X86/X86TargetMachine.h | |
parent | f93f68347f06f6e12dd214c21436bfde55e66bf7 (diff) |
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/X86/X86TargetMachine.h')
-rw-r--r-- | lib/Target/X86/X86TargetMachine.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/Target/X86/X86TargetMachine.h b/lib/Target/X86/X86TargetMachine.h index 0bbef0582f..8278cf1b22 100644 --- a/lib/Target/X86/X86TargetMachine.h +++ b/lib/Target/X86/X86TargetMachine.h @@ -21,7 +21,6 @@ #include "X86InstrInfo.h" #include "X86JITInfo.h" #include "X86Subtarget.h" -#include "X86TargetAsmInfo.h" #include "X86ISelLowering.h" namespace llvm { @@ -33,6 +32,10 @@ class X86TargetMachine : public LLVMTargetMachine { X86InstrInfo InstrInfo; X86JITInfo JITInfo; X86TargetLowering TLInfo; + +protected: + virtual const TargetAsmInfo *createTargetAsmInfo() const; + public: X86TargetMachine(const Module &M, const std::string &FS); @@ -51,10 +54,6 @@ public: static unsigned getModuleMatchQuality(const Module &M); static unsigned getJITMatchQuality(); - virtual const TargetAsmInfo *createTargetAsmInfo() const { - return static_cast<const TargetAsmInfo *>(new X86TargetAsmInfo(*this)); - } - // Set up the pass pipeline. virtual bool addInstSelector(FunctionPassManager &PM, bool Fast); virtual bool addPostRegAlloc(FunctionPassManager &PM, bool Fast); |