If a node has more than 64 outgoing edges, make the edges go from the 'truncated' block,

instead of dropping them entirely.

llvm-svn: 11334
This commit is contained in:
Chris Lattner 2004-02-11 20:44:17 +00:00
parent 7246d4efd0
commit 9250e48a76

View File

@ -117,7 +117,7 @@ public:
}
if (EI != EE)
O << "|truncated...";
O << "|<g64>truncated...";
O << "}";
}
O << "}\"];\n"; // Finish printing the "node" line
@ -126,6 +126,8 @@ public:
EI = GTraits::child_begin(Node);
for (unsigned i = 0; EI != EE && i != 64; ++EI, ++i)
writeEdge(Node, i, EI);
for (; EI != EE; ++EI)
writeEdge(Node, 64, EI);
}
void writeEdge(NodeType *Node, unsigned edgeidx, child_iterator EI) {