diff options
author | Dale Johannesen <dalej@apple.com> | 2009-02-06 23:05:02 +0000 |
---|---|---|
committer | Dale Johannesen <dalej@apple.com> | 2009-02-06 23:05:02 +0000 |
commit | e8d7230f480654cdb8ff1c3d0a38e1e9ab0bd55f (patch) | |
tree | 549d56aad780475ce3fa10a4fb13248073d6dac0 /lib/Target/PowerPC/PPCISelLowering.cpp | |
parent | e72c5964d5263f2489bf2c7e9d32f71271d205fc (diff) |
Remove more non-DebugLoc getNode variants. Use
getCALLSEQ_{END,START} to permit passing no DebugLoc
there. UNDEF doesn't logically have DebugLoc; add
getUNDEF to encapsulate this.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63978 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PowerPC/PPCISelLowering.cpp')
-rw-r--r-- | lib/Target/PowerPC/PPCISelLowering.cpp | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/lib/Target/PowerPC/PPCISelLowering.cpp b/lib/Target/PowerPC/PPCISelLowering.cpp index 53bce15094..df57021336 100644 --- a/lib/Target/PowerPC/PPCISelLowering.cpp +++ b/lib/Target/PowerPC/PPCISelLowering.cpp @@ -2503,15 +2503,8 @@ SDValue PPCTargetLowering::LowerCALL(SDValue Op, SelectionDAG &DAG, // Emit callseq_end just before tailcall node. if (isTailCall) { - SmallVector<SDValue, 8> CallSeqOps; - SDVTList CallSeqNodeTys = DAG.getVTList(MVT::Other, MVT::Flag); - CallSeqOps.push_back(Chain); - CallSeqOps.push_back(DAG.getIntPtrConstant(NumBytes, true)); - CallSeqOps.push_back(DAG.getIntPtrConstant(0, true)); - if (InFlag.getNode()) - CallSeqOps.push_back(InFlag); - Chain = DAG.getNode(ISD::CALLSEQ_END, CallSeqNodeTys, &CallSeqOps[0], - CallSeqOps.size()); + Chain = DAG.getCALLSEQ_END(Chain, DAG.getIntPtrConstant(NumBytes, true), + DAG.getIntPtrConstant(0, true), InFlag); InFlag = Chain.getValue(1); } |