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/MSP430/MSP430TargetMachine.cpp | |
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/MSP430/MSP430TargetMachine.cpp')
-rw-r--r-- | lib/Target/MSP430/MSP430TargetMachine.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Target/MSP430/MSP430TargetMachine.cpp b/lib/Target/MSP430/MSP430TargetMachine.cpp index 7156c87380..2c8bfc7470 100644 --- a/lib/Target/MSP430/MSP430TargetMachine.cpp +++ b/lib/Target/MSP430/MSP430TargetMachine.cpp @@ -39,8 +39,10 @@ X(TheMSP430Target, "msp430", "MSP430 [experimental]"); // Force static initialization. extern "C" void LLVMInitializeMSP430Target() { } -MSP430TargetMachine::MSP430TargetMachine(const Module &M, +MSP430TargetMachine::MSP430TargetMachine(const Target &T, + const Module &M, const std::string &FS) : + LLVMTargetMachine(T), Subtarget(*this, M, FS), // FIXME: Check TargetData string. DataLayout("e-p:16:8:8-i8:8:8-i16:8:8-i32:8:8"), |