diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-07-15 12:11:05 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-07-15 12:11:05 +0000 |
commit | 8ea70214b5ffcdc5c3693a082cc1ec3cec6ba98b (patch) | |
tree | dccd08e465e3256502fb847f574b8f8b5018e70b /lib/Target/PowerPC/PPCTargetMachine.h | |
parent | fb455975e24663db0c9ea073278957e243087d13 (diff) | |
download | external_llvm-8ea70214b5ffcdc5c3693a082cc1ec3cec6ba98b.tar.gz external_llvm-8ea70214b5ffcdc5c3693a082cc1ec3cec6ba98b.tar.bz2 external_llvm-8ea70214b5ffcdc5c3693a082cc1ec3cec6ba98b.zip |
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/PowerPC/PPCTargetMachine.h')
-rw-r--r-- | lib/Target/PowerPC/PPCTargetMachine.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/Target/PowerPC/PPCTargetMachine.h b/lib/Target/PowerPC/PPCTargetMachine.h index 393474c576..c489751283 100644 --- a/lib/Target/PowerPC/PPCTargetMachine.h +++ b/lib/Target/PowerPC/PPCTargetMachine.h @@ -50,7 +50,8 @@ protected: static AsmPrinterCtorFn AsmPrinterCtor; public: - PPCTargetMachine(const Module &M, const std::string &FS, bool is64Bit); + PPCTargetMachine(const Target &T, const Module &M, const std::string &FS, + bool is64Bit); virtual const PPCInstrInfo *getInstrInfo() const { return &InstrInfo; } virtual const PPCFrameInfo *getFrameInfo() const { return &FrameInfo; } @@ -103,7 +104,7 @@ public: /// class PPC32TargetMachine : public PPCTargetMachine { public: - PPC32TargetMachine(const Module &M, const std::string &FS); + PPC32TargetMachine(const Target &T, const Module &M, const std::string &FS); static unsigned getJITMatchQuality(); static unsigned getModuleMatchQuality(const Module &M); @@ -113,7 +114,7 @@ public: /// class PPC64TargetMachine : public PPCTargetMachine { public: - PPC64TargetMachine(const Module &M, const std::string &FS); + PPC64TargetMachine(const Target &T, const Module &M, const std::string &FS); static unsigned getJITMatchQuality(); static unsigned getModuleMatchQuality(const Module &M); |