Add a (disabled by default) way to view the ID of a node.
authorChris Lattner <sabre@nondot.org>
Mon, 15 Oct 2007 05:32:43 +0000 (05:32 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 15 Oct 2007 05:32:43 +0000 (05:32 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42978 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp

index 734d0f2d35c5ba0880901dc2927181a21eb07c8c..a64ccd3b84fe105ea1235510c7333f9db5301b53 100644 (file)
@@ -172,6 +172,10 @@ std::string DOTGraphTraits<SelectionDAG*>::getNodeLabel(const SDNode *Node,
       Op = Op + "<trunc " + MVT::getValueTypeString(ST->getStoredVT()) + ">";
     Op += ST->getIndexedModeName(ST->getAddressingMode());
   }
+
+#if 0
+  Op += " Id=" + itostr(Node->getNodeId());
+#endif
   
   return Op;
 }