mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-18 13:34:04 +00:00
If a node has more than 64 outgoing edges, make the edges go from the 'truncated' block,
instead of dropping them entirely. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11334 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e28adaa633
commit
6a6dd6f487
@ -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) {
|
||||
|
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user