summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PowerPC/PPCTargetMachine.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/PowerPC/PPCTargetMachine.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/PowerPC/PPCTargetMachine.h')
-rw-r--r--llvm/lib/Target/PowerPC/PPCTargetMachine.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCTargetMachine.h b/llvm/lib/Target/PowerPC/PPCTargetMachine.h
index d11f0158a02..777772e1fae 100644
--- a/llvm/lib/Target/PowerPC/PPCTargetMachine.h
+++ b/llvm/lib/Target/PowerPC/PPCTargetMachine.h
@@ -19,7 +19,6 @@
#include "PPCJITInfo.h"
#include "PPCInstrInfo.h"
#include "PPCISelLowering.h"
-#include "PPCTargetAsmInfo.h"
#include "llvm/Target/TargetMachine.h"
#include "llvm/Target/TargetData.h"
@@ -37,6 +36,10 @@ class PPCTargetMachine : public LLVMTargetMachine {
PPCJITInfo JITInfo;
PPCTargetLowering TLInfo;
InstrItineraryData InstrItins;
+
+protected:
+ virtual const TargetAsmInfo *createTargetAsmInfo() const;
+
public:
PPCTargetMachine(const Module &M, const std::string &FS, bool is64Bit);
@@ -56,10 +59,6 @@ public:
return InstrItins;
}
- virtual const TargetAsmInfo *createTargetAsmInfo() const {
- return static_cast<const TargetAsmInfo *>(new DarwinTargetAsmInfo(*this));
- }
-
// Pass Pipeline Configuration
virtual bool addInstSelector(FunctionPassManager &PM, bool Fast);
virtual bool addPreEmitPass(FunctionPassManager &PM, bool Fast);
OpenPOWER on IntegriCloud