mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-15 19:24:33 +00:00
Make TargetLowering::getPointerTy() taking DataLayout as an argument
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: jholewinski, ted, yaron.keren, rafael, llvm-commits Differential Revision: http://reviews.llvm.org/D11028 From: Mehdi Amini <mehdi.amini@apple.com> git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@241775 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -121,12 +121,14 @@ EmitSpecializedLibcall(SelectionDAG &DAG, SDLoc dl,
|
||||
{ "__aeabi_memclr", "__aeabi_memclr4", "__aeabi_memclr8" }
|
||||
};
|
||||
TargetLowering::CallLoweringInfo CLI(DAG);
|
||||
CLI.setDebugLoc(dl).setChain(Chain)
|
||||
.setCallee(TLI->getLibcallCallingConv(LC),
|
||||
Type::getVoidTy(*DAG.getContext()),
|
||||
DAG.getExternalSymbol(FunctionNames[AEABILibcall][AlignVariant],
|
||||
TLI->getPointerTy()), std::move(Args), 0)
|
||||
.setDiscardResult();
|
||||
CLI.setDebugLoc(dl)
|
||||
.setChain(Chain)
|
||||
.setCallee(
|
||||
TLI->getLibcallCallingConv(LC), Type::getVoidTy(*DAG.getContext()),
|
||||
DAG.getExternalSymbol(FunctionNames[AEABILibcall][AlignVariant],
|
||||
TLI->getPointerTy(DAG.getDataLayout())),
|
||||
std::move(Args), 0)
|
||||
.setDiscardResult();
|
||||
std::pair<SDValue,SDValue> CallResult = TLI->LowerCallTo(CLI);
|
||||
|
||||
return CallResult.second;
|
||||
|
Reference in New Issue
Block a user