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 | 59afba0fe997c9f65abd66a4c3902ee2064abc4b (patch) | |
tree | 6a2533a502f92913143c482f7187dd301bd1f628 /lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp | |
parent | 91956887f05d6c5d940ad1622b9d3cc33be0044d (diff) |
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
Diffstat (limited to 'lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp')
-rw-r--r-- | lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp index 734d0f2d35..a64ccd3b84 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp +++ b/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; } |