From 59afba0fe997c9f65abd66a4c3902ee2064abc4b 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42978 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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; }