diff options
author | Chris Lattner <sabre@nondot.org> | 2005-05-14 07:32:14 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-05-14 07:32:14 +0000 |
commit | 833a4fbdc540bb366d4733274884616b74b027bf (patch) | |
tree | 4d82708b7bd5f7c6108a1867850d0e05cd598214 /llvm/lib/CodeGen | |
parent | 96c262e24bed2c3efca784f7f8ed2e8bd0aca96c (diff) | |
download | bcm5719-llvm-833a4fbdc540bb366d4733274884616b74b027bf.tar.gz bcm5719-llvm-833a4fbdc540bb366d4733274884616b74b027bf.zip |
Turn this into a wrapper for a simpler version of getNode.
llvm-svn: 22016
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index 3643f77f936..d95b387ead4 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp @@ -1359,14 +1359,13 @@ SDOperand SelectionDAG::getNode(unsigned Opcode, MVT::ValueType VT, SDOperand SelectionDAG::getNode(unsigned Opcode, MVT::ValueType VT, SDOperand N1, SDOperand N2, SDOperand N3, SDOperand N4) { - assert(Opcode == ISD::STORE && "Only stores should use this"); - - SDNode *N = new SDNode(Opcode, N1, N2, N3, N4); - N->setValueTypes(VT); - - // FIXME: memoize NODES - AllNodes.push_back(N); - return SDOperand(N, 0); + std::vector<SDOperand> Ops; + Ops.reserve(4); + Ops.push_back(N1); + Ops.push_back(N2); + Ops.push_back(N3); + Ops.push_back(N4); + return getNode(Opcode, VT, Ops); } SDOperand SelectionDAG::getSrcValue(const Value *V, int Offset) { |