[llvm-commits] CVS: llvm/include/llvm/CodeGen/SelectionDAGNodes.h
Chris Lattner
sabre at nondot.org
Sat Feb 3 18:41:59 PST 2007
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); }
};
More information about the llvm-commits
mailing list