From bc149b2c98755a874348505d4750c31354cea558 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 18 Dec 2005 21:00:53 +0000 Subject: [PATCH] Add an accessor git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24831 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/CodeGen/SelectionDAG.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/include/llvm/CodeGen/SelectionDAG.h b/include/llvm/CodeGen/SelectionDAG.h index 94a95ac8950..f84918b0993 100644 --- a/include/llvm/CodeGen/SelectionDAG.h +++ b/include/llvm/CodeGen/SelectionDAG.h @@ -198,7 +198,17 @@ public: AllNodes.push_back(NN); return NN; } - + /// getCall - Note that this destroys the vector of RetVals passed in. + /// + SDNode *getCall(std::vector &RetVals, SDOperand Chain, + SDOperand Callee, SDOperand Flag, bool isTailCall = false) { + SDNode *NN = new SDNode(isTailCall ? ISD::TAILCALL : ISD::CALL, Chain, + Callee, Flag); + setNodeValueTypes(NN, RetVals); + AllNodes.push_back(NN); + return NN; + } + /// getCall - This is identical to the one above, and should be used for calls /// where arguments are passed in physical registers. This destroys the /// RetVals and ArgsInRegs vectors.