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 | 03f4bc5d6cf777c8aa559c299ef7f85126872881 (patch) | |
tree | dccd08e465e3256502fb847f574b8f8b5018e70b /lib/Target/IA64 | |
parent | c3493cca4c3b4968e6a27a8eaa9031dcffb2073a (diff) |
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/IA64')
-rw-r--r-- | lib/Target/IA64/IA64TargetMachine.cpp | 6 | ||||
-rw-r--r-- | lib/Target/IA64/IA64TargetMachine.h | 2 |
2 files changed, 5 insertions, 3 deletions
diff --git a/lib/Target/IA64/IA64TargetMachine.cpp b/lib/Target/IA64/IA64TargetMachine.cpp index c75a93c307..f369f53a3f 100644 --- a/lib/Target/IA64/IA64TargetMachine.cpp +++ b/lib/Target/IA64/IA64TargetMachine.cpp @@ -62,8 +62,10 @@ unsigned IA64TargetMachine::getModuleMatchQuality(const Module &M) { /// IA64TargetMachine ctor - Create an LP64 architecture model /// -IA64TargetMachine::IA64TargetMachine(const Module &M, const std::string &FS) - : DataLayout("e-f80:128:128"), +IA64TargetMachine::IA64TargetMachine(const Target &T, const Module &M, + const std::string &FS) + : LLVMTargetMachine(T), + DataLayout("e-f80:128:128"), FrameInfo(TargetFrameInfo::StackGrowsDown, 16, 0), TLInfo(*this) { // FIXME? check this stuff } diff --git a/lib/Target/IA64/IA64TargetMachine.h b/lib/Target/IA64/IA64TargetMachine.h index 6e78848519..4da2a94291 100644 --- a/lib/Target/IA64/IA64TargetMachine.h +++ b/lib/Target/IA64/IA64TargetMachine.h @@ -42,7 +42,7 @@ protected: static AsmPrinterCtorFn AsmPrinterCtor; public: - IA64TargetMachine(const Module &M, const std::string &FS); + IA64TargetMachine(const Target &T, const Module &M, const std::string &FS); virtual const IA64InstrInfo *getInstrInfo() const { return &InstrInfo; } virtual const TargetFrameInfo *getFrameInfo() const { return &FrameInfo; } |