aboutsummaryrefslogtreecommitdiff
path: root/lib/Analysis/DataStructure
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-02-13 20:14:40 +0000
committerChris Lattner <sabre@nondot.org>2003-02-13 20:14:40 +0000
commit352a6fa36f9c00a8538a252931d94230d6a32aa7 (patch)
tree3e023c7ed346cfd8a3ce6936d11bd617065cb6f0 /lib/Analysis/DataStructure
parent0779388ff830e0636f3071e70546e33d3b645f54 (diff)
Use the new tailclip property new added to graphviz CVS to make call nodes
actually intelligable git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5554 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/DataStructure')
-rw-r--r--lib/Analysis/DataStructure/Printer.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/Analysis/DataStructure/Printer.cpp b/lib/Analysis/DataStructure/Printer.cpp
index 6a85ded331..7af646757b 100644
--- a/lib/Analysis/DataStructure/Printer.cpp
+++ b/lib/Analysis/DataStructure/Printer.cpp
@@ -69,8 +69,7 @@ struct DOTGraphTraits<const DSGraph*> : public DefaultDOTGraphTraits {
}
static const char *getGraphProperties(const DSGraph *G) {
- return "\tedge [arrowtail=\"dot\"];\n"
- "\tsize=\"10,7.5\";\n"
+ return "\tsize=\"10,7.5\";\n"
"\trotate=\"90\";\n";
}
@@ -135,21 +134,21 @@ struct DOTGraphTraits<const DSGraph*> : public DefaultDOTGraphTraits {
if (DSNode *N = Call.getRetVal().getNode()) {
int EdgeDest = Call.getRetVal().getOffset() >> DS::PointerShift;
if (EdgeDest == 0) EdgeDest = -1;
- GW.emitEdge(&Call, 0, N, EdgeDest, "color=gray63");
+ GW.emitEdge(&Call, 0, N, EdgeDest, "color=gray63,tailclip=false");
}
// Print out the callee...
if (Call.isIndirectCall()) {
DSNode *N = Call.getCalleeNode();
assert(N && "Null call site callee node!");
- GW.emitEdge(&Call, 1, N, -1, "color=gray63");
+ GW.emitEdge(&Call, 1, N, -1, "color=gray63,tailclip=false");
}
for (unsigned j = 0, e = Call.getNumPtrArgs(); j != e; ++j)
if (DSNode *N = Call.getPtrArg(j).getNode()) {
int EdgeDest = Call.getPtrArg(j).getOffset() >> DS::PointerShift;
if (EdgeDest == 0) EdgeDest = -1;
- GW.emitEdge(&Call, j+2, N, EdgeDest, "color=gray63");
+ GW.emitEdge(&Call, j+2, N, EdgeDest, "color=gray63,tailclip=false");
}
}
}