Changes in directory llvm/include/llvm/CodeGen:
SelectionDAGNodes.h updated: 1.169 -> 1.170 --- Log message: simplify MorphNodeTo to take a VTList operand. --- Diffs of the changes: (+4 -7) SelectionDAGNodes.h | 11 ++++------- 1 files changed, 4 insertions(+), 7 deletions(-) Index: llvm/include/llvm/CodeGen/SelectionDAGNodes.h diff -u llvm/include/llvm/CodeGen/SelectionDAGNodes.h:1.169 llvm/include/llvm/CodeGen/SelectionDAGNodes.h:1.170 --- llvm/include/llvm/CodeGen/SelectionDAGNodes.h:1.169 Sat Feb 3 20:32:44 2007 +++ llvm/include/llvm/CodeGen/SelectionDAGNodes.h Sat Feb 3 20:41:42 2007 @@ -970,10 +970,10 @@ /// MorphNodeTo - This clears the return value and operands list, and sets the /// opcode of the node to the specified value. This should only be used by /// the SelectionDAG class. - void MorphNodeTo(unsigned Opc) { + void MorphNodeTo(unsigned Opc, SDVTList L) { NodeType = Opc; - ValueList = 0; - NumValues = 0; + ValueList = L.VTs; + NumValues = L.NumVTs; // Clear the operands list, updating used nodes to remove this from their // use list. @@ -1058,10 +1058,7 @@ virtual void ANCHOR(); // Out-of-line virtual method to give class a home. public: HandleSDNode(SDOperand X) : SDNode(ISD::HANDLENODE, X) {} - ~HandleSDNode() { - MorphNodeTo(ISD::HANDLENODE); // Drops operand uses. - } - + ~HandleSDNode(); SDOperand getValue() const { return getOperand(0); } }; _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits