forked from OSchip/llvm-project
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> llvm-svn: 241613
This commit is contained in:
parent
f5339ec035
commit
7da8b536f4
|
@ -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