diff options
author | Chris Lattner <sabre@nondot.org> | 2007-10-15 05:32:43 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-10-15 05:32:43 +0000 |
commit | 90e0b271df417c704e7b5b170a803bc0d84c2e5e (patch) | |
tree | 416b539134c2735c495b1877a7416b101b17cba8 /llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp | |
parent | bfdebe33a0bd373c7ca568067e39352c0533c112 (diff) | |
download | bcm5719-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.cpp | 4 |
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; } |