mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 04:30:23 +00:00
Redirect DataLayout from TargetMachine to Module in FastISel
Summary: This change is part of a series of commits dedicated to have a single DataLayout during compilation by using always the one owned by the module. Reviewers: echristo Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D10985 From: Mehdi Amini <mehdi.amini@apple.com> git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@241613 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f869ca86f1
commit
26a2a4b4ed
@ -1612,7 +1612,7 @@ FastISel::FastISel(FunctionLoweringInfo &FuncInfo,
|
||||
bool SkipTargetIndependentISel)
|
||||
: FuncInfo(FuncInfo), MF(FuncInfo.MF), MRI(FuncInfo.MF->getRegInfo()),
|
||||
MFI(*FuncInfo.MF->getFrameInfo()), MCP(*FuncInfo.MF->getConstantPool()),
|
||||
TM(FuncInfo.MF->getTarget()), DL(*TM.getDataLayout()),
|
||||
TM(FuncInfo.MF->getTarget()), DL(MF->getDataLayout()),
|
||||
TII(*MF->getSubtarget().getInstrInfo()),
|
||||
TLI(*MF->getSubtarget().getTargetLowering()),
|
||||
TRI(*MF->getSubtarget().getRegisterInfo()), LibInfo(LibInfo),
|
||||
|
Loading…
Reference in New Issue
Block a user