[llvm] r274715 - Use the MachineFunction that we've already queried for in the function.

Eric Christopher via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 6 18:08:19 PDT 2016


Author: echristo
Date: Wed Jul  6 20:08:19 2016
New Revision: 274715

URL: http://llvm.org/viewvc/llvm-project?rev=274715&view=rev
Log:
Use the MachineFunction that we've already queried for in the function.

Modified:
    llvm/trunk/lib/Target/PowerPC/PPCISelLowering.cpp

Modified: llvm/trunk/lib/Target/PowerPC/PPCISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/PowerPC/PPCISelLowering.cpp?rev=274715&r1=274714&r2=274715&view=diff
==============================================================================
--- llvm/trunk/lib/Target/PowerPC/PPCISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/PowerPC/PPCISelLowering.cpp Wed Jul  6 20:08:19 2016
@@ -4687,8 +4687,7 @@ SDValue PPCTargetLowering::LowerCall_32S
 
   // 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_32S
 
   // 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);




More information about the llvm-commits mailing list