Add an accessor

llvm-svn: 24831
This commit is contained in:
Chris Lattner 2005-12-18 21:00:53 +00:00
parent 02e9904ee5
commit 1febcd672c
1 changed files with 11 additions and 1 deletions

View File

@ -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<MVT::ValueType> &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.