mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-29 10:25:12 +00:00
Redirect DataLayout from TargetMachine to Module in ComputeValueVTs()
Summary: Avoid using the TargetMachine owned DataLayout and use the Module owned one instead. This requires passing the DataLayout up the stack to ComputeValueVTs(). 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: jholewinski, yaron.keren, rafael, llvm-commits Differential Revision: http://reviews.llvm.org/D11019 From: Mehdi Amini <mehdi.amini@apple.com> git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@241773 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -908,10 +908,10 @@ bool FastISel::lowerCallTo(CallLoweringInfo &CLI) {
|
||||
// Handle the incoming return values from the call.
|
||||
CLI.clearIns();
|
||||
SmallVector<EVT, 4> RetTys;
|
||||
ComputeValueVTs(TLI, CLI.RetTy, RetTys);
|
||||
ComputeValueVTs(TLI, DL, CLI.RetTy, RetTys);
|
||||
|
||||
SmallVector<ISD::OutputArg, 4> Outs;
|
||||
GetReturnInfo(CLI.RetTy, getReturnAttrs(CLI), Outs, TLI);
|
||||
GetReturnInfo(CLI.RetTy, getReturnAttrs(CLI), Outs, TLI, DL);
|
||||
|
||||
bool CanLowerReturn = TLI.CanLowerReturn(
|
||||
CLI.CallConv, *FuncInfo.MF, CLI.IsVarArg, Outs, CLI.RetTy->getContext());
|
||||
@@ -1480,7 +1480,7 @@ bool FastISel::selectExtractValue(const User *U) {
|
||||
unsigned VTIndex = ComputeLinearIndex(AggTy, EVI->getIndices());
|
||||
|
||||
SmallVector<EVT, 4> AggValueVTs;
|
||||
ComputeValueVTs(TLI, AggTy, AggValueVTs);
|
||||
ComputeValueVTs(TLI, DL, AggTy, AggValueVTs);
|
||||
|
||||
for (unsigned i = 0; i < VTIndex; i++)
|
||||
ResultReg += TLI.getNumRegisters(FuncInfo.Fn->getContext(), AggValueVTs[i]);
|
||||
|
Reference in New Issue
Block a user