summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PowerPC/PPCISelLowering.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2016-07-07 01:08:19 +0000
committerEric Christopher <echristo@gmail.com>2016-07-07 01:08:19 +0000
commit606a268bed2a4a111a46232ce4b1edac24efd030 (patch)
treef307257d8509e713977cdc76455df53a57f0785a /llvm/lib/Target/PowerPC/PPCISelLowering.cpp
parent327e440c6ced6a40a067be4b71e0c17c1d952c53 (diff)
downloadbcm5719-llvm-606a268bed2a4a111a46232ce4b1edac24efd030.tar.gz
bcm5719-llvm-606a268bed2a4a111a46232ce4b1edac24efd030.zip
Use the MachineFunction that we've already queried for in the function.
llvm-svn: 274715
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCISelLowering.cpp')
-rw-r--r--llvm/lib/Target/PowerPC/PPCISelLowering.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCISelLowering.cpp b/llvm/lib/Target/PowerPC/PPCISelLowering.cpp
index 909b7f9123d..9b8c470dff0 100644
--- a/llvm/lib/Target/PowerPC/PPCISelLowering.cpp
+++ b/llvm/lib/Target/PowerPC/PPCISelLowering.cpp
@@ -4687,8 +4687,7 @@ SDValue PPCTargetLowering::LowerCall_32SVR4(
// Assign locations to all of the outgoing arguments.
SmallVector<CCValAssign, 16> ArgLocs;
- PPCCCState CCInfo(CallConv, isVarArg, DAG.getMachineFunction(), ArgLocs,
- *DAG.getContext());
+ PPCCCState CCInfo(CallConv, isVarArg, MF, ArgLocs, *DAG.getContext());
// Reserve space for the linkage area on the stack.
CCInfo.AllocateStack(Subtarget.getFrameLowering()->getLinkageSize(),
@@ -4731,8 +4730,7 @@ SDValue PPCTargetLowering::LowerCall_32SVR4(
// Assign locations to all of the outgoing aggregate by value arguments.
SmallVector<CCValAssign, 16> ByValArgLocs;
- CCState CCByValInfo(CallConv, isVarArg, DAG.getMachineFunction(),
- ByValArgLocs, *DAG.getContext());
+ CCState CCByValInfo(CallConv, isVarArg, MF, ByValArgLocs, *DAG.getContext());
// Reserve stack space for the allocations in CCInfo.
CCByValInfo.AllocateStack(CCInfo.getNextStackOffset(), PtrByteSize);
OpenPOWER on IntegriCloud