diff options
author | Sanjoy Das <sanjoy@playingwithpointers.com> | 2015-05-06 02:36:31 +0000 |
---|---|---|
committer | Sanjoy Das <sanjoy@playingwithpointers.com> | 2015-05-06 02:36:31 +0000 |
commit | 4bfb4720725db60cf3be9955a83d8ac4aa32f188 (patch) | |
tree | 96f9b1c65e6a11f754bf59d605f8b4fea2942244 /llvm/lib | |
parent | b023d06bb0000db887d242eefe20ff5cc0592333 (diff) | |
download | bcm5719-llvm-4bfb4720725db60cf3be9955a83d8ac4aa32f188.tar.gz bcm5719-llvm-4bfb4720725db60cf3be9955a83d8ac4aa32f188.zip |
[Statepoint] Clean up StatepointLowering: symbolic constants.
For accessors in the `Statepoint` class, use symbolic constants for
offsets into the argument vector instead of literals. This makes the
code intent clearer and simpler to change.
llvm-svn: 236566
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/StatepointLowering.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/StatepointLowering.cpp b/llvm/lib/CodeGen/SelectionDAG/StatepointLowering.cpp index 521e27334ff..49c08d977bc 100644 --- a/llvm/lib/CodeGen/SelectionDAG/StatepointLowering.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/StatepointLowering.cpp @@ -250,8 +250,9 @@ lowerCallFromStatepoint(ImmutableStatepoint ISP, MachineBasicBlock *LandingPad, SDValue ReturnValue, CallEndVal; std::tie(ReturnValue, CallEndVal) = Builder.lowerCallOperands( - ISP.getCallSite(), ISP.callArgsBeginOffset(), ISP.getNumCallArgs(), - ActualCallee, DefTy, LandingPad, false /* IsPatchPoint */); + ISP.getCallSite(), ImmutableStatepoint::CallArgsBeginPos, + ISP.getNumCallArgs(), ActualCallee, DefTy, LandingPad, + false /* IsPatchPoint */); SDNode *CallEnd = CallEndVal.getNode(); |