From 0841469ff04ca87037cebe4d7fedaa1399dab5cc Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 15 Oct 2007 05:32:43 +0000 Subject: [PATCH] Add a (disabled by default) way to view the ID of a node. llvm-svn: 42978 --- lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp index 734d0f2d35c..a64ccd3b84f 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp @@ -172,6 +172,10 @@ std::string DOTGraphTraits::getNodeLabel(const SDNode *Node, Op = Op + "getStoredVT()) + ">"; Op += ST->getIndexedModeName(ST->getAddressingMode()); } + +#if 0 + Op += " Id=" + itostr(Node->getNodeId()); +#endif return Op; }