summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Alpha/AlphaTargetMachine.h
diff options
context:
space:
mode:
authorJim Laskey <jlaskey@mac.com>2006-09-07 23:39:26 +0000
committerJim Laskey <jlaskey@mac.com>2006-09-07 23:39:26 +0000
commitae92ce879869da3a486f16a69f8136139d83ddb2 (patch)
tree2ed034236521948bc397328ad46cef1fda3c9129 /llvm/lib/Target/Alpha/AlphaTargetMachine.h
parent0142cd129e49492673158fad59716b29f98af664 (diff)
downloadbcm5719-llvm-ae92ce879869da3a486f16a69f8136139d83ddb2.tar.gz
bcm5719-llvm-ae92ce879869da3a486f16a69f8136139d83ddb2.zip
1. Remove condition on delete.
2. Protect and outline createTargetAsmInfo. 3. Misc. kruft. llvm-svn: 30169
Diffstat (limited to 'llvm/lib/Target/Alpha/AlphaTargetMachine.h')
-rw-r--r--llvm/lib/Target/Alpha/AlphaTargetMachine.h12
1 files changed, 3 insertions, 9 deletions
diff --git a/llvm/lib/Target/Alpha/AlphaTargetMachine.h b/llvm/lib/Target/Alpha/AlphaTargetMachine.h
index d47ca8215c9..c00e71c8753 100644
--- a/llvm/lib/Target/Alpha/AlphaTargetMachine.h
+++ b/llvm/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);
OpenPOWER on IntegriCloud