aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-02-04 02:41:42 +0000
committerChris Lattner <sabre@nondot.org>2007-02-04 02:41:42 +0000
commit48b85926524f9d29ae600123c90194cd73fd629e (patch)
tree4346f4f07bcc4371c98f1762befa40b6c7be5aa4 /include/llvm
parent67612a1188980d92a4bdd84c34a5aa89a4b9d929 (diff)
downloadexternal_llvm-48b85926524f9d29ae600123c90194cd73fd629e.zip
external_llvm-48b85926524f9d29ae600123c90194cd73fd629e.tar.gz
external_llvm-48b85926524f9d29ae600123c90194cd73fd629e.tar.bz2
simplify MorphNodeTo to take a VTList operand.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33868 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm')
-rw-r--r--include/llvm/CodeGen/SelectionDAGNodes.h11
1 files changed, 4 insertions, 7 deletions
diff --git a/include/llvm/CodeGen/SelectionDAGNodes.h b/include/llvm/CodeGen/SelectionDAGNodes.h
index 4a40e83..5e4be98 100644
--- a/include/llvm/CodeGen/SelectionDAGNodes.h
+++ b/include/llvm/CodeGen/SelectionDAGNodes.h
@@ -970,10 +970,10 @@ protected:
/// 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 @@ class HandleSDNode : public SDNode {
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); }
};