diff options
Diffstat (limited to 'lib/Target/Alpha/AlphaTargetMachine.h')
-rw-r--r-- | lib/Target/Alpha/AlphaTargetMachine.h | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/lib/Target/Alpha/AlphaTargetMachine.h b/lib/Target/Alpha/AlphaTargetMachine.h index d47ca8215c..c00e71c875 100644 --- a/lib/Target/Alpha/AlphaTargetMachine.h +++ b/lib/Target/Alpha/AlphaTargetMachine.h @@ -20,7 +20,6 @@ #include "AlphaInstrInfo.h" #include "AlphaJITInfo.h" #include "AlphaSubtarget.h" -#include "AlphaTargetAsmInfo.h" namespace llvm { @@ -32,13 +31,12 @@ class AlphaTargetMachine : public LLVMTargetMachine { TargetFrameInfo FrameInfo; AlphaJITInfo JITInfo; AlphaSubtarget Subtarget; - AlphaTargetAsmInfo *AsmInfo; + +protected: + virtual const TargetAsmInfo *createTargetAsmInfo() const; public: AlphaTargetMachine(const Module &M, const std::string &FS); - ~AlphaTargetMachine() { - if (AsmInfo) delete AsmInfo; - } virtual const AlphaInstrInfo *getInstrInfo() const { return &InstrInfo; } virtual const TargetFrameInfo *getFrameInfo() const { return &FrameInfo; } @@ -51,10 +49,6 @@ public: return &JITInfo; } - virtual const TargetAsmInfo *createTargetAsmInfo() const { - return static_cast<const TargetAsmInfo *>(new AlphaTargetAsmInfo(*this)); - } - static unsigned getJITMatchQuality(); static unsigned getModuleMatchQuality(const Module &M); |