summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-10-15 05:32:43 +0000
committerChris Lattner <sabre@nondot.org>2007-10-15 05:32:43 +0000
commit90e0b271df417c704e7b5b170a803bc0d84c2e5e (patch)
tree416b539134c2735c495b1877a7416b101b17cba8 /llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp
parentbfdebe33a0bd373c7ca568067e39352c0533c112 (diff)
downloadbcm5719-llvm-90e0b271df417c704e7b5b170a803bc0d84c2e5e.tar.gz
bcm5719-llvm-90e0b271df417c704e7b5b170a803bc0d84c2e5e.zip
Add a (disabled by default) way to view the ID of a node.
llvm-svn: 42978
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp
index 734d0f2d35c..a64ccd3b84f 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp
@@ -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;
}
OpenPOWER on IntegriCloud