diff options
| author | Chris Lattner <sabre@nondot.org> | 2005-12-18 21:00:53 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2005-12-18 21:00:53 +0000 |
| commit | 1febcd672c3134a480a268da7733e9ff8f17109f (patch) | |
| tree | 66cea4d2f4575c2e1e43053c5cf3325794127d68 | |
| parent | 02e9904ee5e7370be09cb111ede8d35575172aaf (diff) | |
| download | bcm5719-llvm-1febcd672c3134a480a268da7733e9ff8f17109f.tar.gz bcm5719-llvm-1febcd672c3134a480a268da7733e9ff8f17109f.zip | |
Add an accessor
llvm-svn: 24831
| -rw-r--r-- | llvm/include/llvm/CodeGen/SelectionDAG.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/llvm/include/llvm/CodeGen/SelectionDAG.h b/llvm/include/llvm/CodeGen/SelectionDAG.h index 94a95ac8950..f84918b0993 100644 --- a/llvm/include/llvm/CodeGen/SelectionDAG.h +++ b/llvm/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<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. |

