diff options
author | Chris Lattner <sabre@nondot.org> | 2010-02-23 19:31:18 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-02-23 19:31:18 +0000 |
commit | 1738d49b74b4666736f8d081290687fd85ddab68 (patch) | |
tree | 75eca17c73d050f3cfecb15e77054659e44dfe8b | |
parent | ff96ccd3373278ea0d89f4ca9bd2c751b2e3e77b (diff) | |
download | bcm5719-llvm-1738d49b74b4666736f8d081290687fd85ddab68.tar.gz bcm5719-llvm-1738d49b74b4666736f8d081290687fd85ddab68.zip |
Print node ID's in dumps and views if set.
llvm-svn: 96971
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index ef21a1592bb..e67135028fc 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp @@ -5926,6 +5926,9 @@ void SDNode::print_details(raw_ostream &OS, const SelectionDAG *G) const { if (G) if (unsigned Order = G->GetOrdering(this)) OS << " [ORD=" << Order << ']'; + + if (getNodeId() != -1) + OS << " [ID=" << getNodeId() << ']'; } void SDNode::print(raw_ostream &OS, const SelectionDAG *G) const { |