From 33182325f551226873d8e77c146016a6bd30a07d Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 16 Aug 2005 21:55:35 +0000 Subject: Eliminate the RegSDNode class, which 3 nodes (CopyFromReg/CopyToReg/ImplicitDef) used to tack a register number onto the node. Instead of doing this, make a new node, RegisterSDNode, which is a leaf containing a register number. These three operations just become normal DAG nodes now, instead of requiring special handling. Note that with this change, it is no longer correct to make illegal CopyFromReg/CopyToReg nodes. The legalizer will not touch them, and this is bad, so don't do it. :) llvm-svn: 22806 --- llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp') diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp index a60acc12080..20cec1f11d8 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp @@ -72,8 +72,8 @@ std::string DOTGraphTraits::getNodeLabel(const SDNode *Node, if (LBB) Op += LBB->getName(); //Op += " " + (const void*)BBDN->getBasicBlock(); - } else if (const RegSDNode *C2V = dyn_cast(Node)) { - Op += " #" + utostr(C2V->getReg()); + } else if (const RegisterSDNode *R = dyn_cast(Node)) { + Op += " #" + utostr(R->getReg()); } else if (const ExternalSymbolSDNode *ES = dyn_cast(Node)) { Op += "'" + std::string(ES->getSymbol()) + "'"; -- cgit v1.2.3