summaryrefslogtreecommitdiff
path: root/include/llvm/Support/GraphWriter.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-02-11 20:44:17 +0000
committerChris Lattner <sabre@nondot.org>2004-02-11 20:44:17 +0000
commit6a6dd6f487bfda1fe8fbb4ab7cb0a9fa1fbadbcf (patch)
treeca9890404a10f281b514e86c0c26db7f9bbfb9f8 /include/llvm/Support/GraphWriter.h
parente28adaa633393d5beea7f8e97951cbe1e3cd1646 (diff)
downloadllvm-6a6dd6f487bfda1fe8fbb4ab7cb0a9fa1fbadbcf.tar.gz
llvm-6a6dd6f487bfda1fe8fbb4ab7cb0a9fa1fbadbcf.tar.bz2
llvm-6a6dd6f487bfda1fe8fbb4ab7cb0a9fa1fbadbcf.tar.xz
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
Diffstat (limited to 'include/llvm/Support/GraphWriter.h')
-rw-r--r--include/llvm/Support/GraphWriter.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/llvm/Support/GraphWriter.h b/include/llvm/Support/GraphWriter.h
index 0eace78d73..c6a5c3cdc9 100644
--- a/include/llvm/Support/GraphWriter.h
+++ b/include/llvm/Support/GraphWriter.h
@@ -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) {