commit | 91d5e06c189787ac18cdf66148503d0d4198730f | [log] [tgz] |
---|---|---|
author | Chris Lattner <sabre@nondot.org> | Tue Feb 23 19:31:18 2010 +0000 |
committer | Chris Lattner <sabre@nondot.org> | Tue Feb 23 19:31:18 2010 +0000 |
tree | 0e09ecb7355d0226eef731717f1a53049cd37d0a | |
parent | 5fbf150c2062d2243851d26dcfbe5c4383a253dd [diff] [blame] |
Print node ID's in dumps and views if set. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96971 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index ef21a15..e671350 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
@@ -5926,6 +5926,9 @@ 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 {