aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/CellSPU
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-07-15 12:11:05 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-07-15 12:11:05 +0000
commit8ea70214b5ffcdc5c3693a082cc1ec3cec6ba98b (patch)
treedccd08e465e3256502fb847f574b8f8b5018e70b /lib/Target/CellSPU
parentfb455975e24663db0c9ea073278957e243087d13 (diff)
downloadexternal_llvm-8ea70214b5ffcdc5c3693a082cc1ec3cec6ba98b.zip
external_llvm-8ea70214b5ffcdc5c3693a082cc1ec3cec6ba98b.tar.gz
external_llvm-8ea70214b5ffcdc5c3693a082cc1ec3cec6ba98b.tar.bz2
Provide TargetMachine implementations with reference to Target they were created
from. - This commit is almost entirely propogating the reference through the TargetMachine subclasses' constructor calls. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75778 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/CellSPU')
-rw-r--r--lib/Target/CellSPU/SPUTargetMachine.cpp6
-rw-r--r--lib/Target/CellSPU/SPUTargetMachine.h2
2 files changed, 5 insertions, 3 deletions
diff --git a/lib/Target/CellSPU/SPUTargetMachine.cpp b/lib/Target/CellSPU/SPUTargetMachine.cpp
index 29bc705..8c74385 100644
--- a/lib/Target/CellSPU/SPUTargetMachine.cpp
+++ b/lib/Target/CellSPU/SPUTargetMachine.cpp
@@ -62,8 +62,10 @@ SPUTargetMachine::getModuleMatchQuality(const Module &M)
return 0; // No match at all...
}
-SPUTargetMachine::SPUTargetMachine(const Module &M, const std::string &FS)
- : Subtarget(*this, M, FS),
+SPUTargetMachine::SPUTargetMachine(const Target &T, const Module &M,
+ const std::string &FS)
+ : LLVMTargetMachine(T),
+ Subtarget(*this, M, FS),
DataLayout(Subtarget.getTargetDataString()),
InstrInfo(*this),
FrameInfo(*this),
diff --git a/lib/Target/CellSPU/SPUTargetMachine.h b/lib/Target/CellSPU/SPUTargetMachine.h
index 83ce9e7..1b32897 100644
--- a/lib/Target/CellSPU/SPUTargetMachine.h
+++ b/lib/Target/CellSPU/SPUTargetMachine.h
@@ -47,7 +47,7 @@ protected:
static AsmPrinterCtorFn AsmPrinterCtor;
public:
- SPUTargetMachine(const Module &M, const std::string &FS);
+ SPUTargetMachine(const Target &T, const Module &M, const std::string &FS);
/// Return the subtarget implementation object
virtual const SPUSubtarget *getSubtargetImpl() const {