diff options
author | 2006-09-01 14:01:09 -0700 | |
---|---|---|
committer | 2006-09-14 13:20:56 -0700 | |
commit | a8594de2db28e4489debd83cdc4cb62f96f339e0 (patch) | |
tree | 33d8b0e4d7deecfd2c0c6d5a8a6e680896541373 /graph.c | |
parent | Make sparse warn about initializers that initialize the same member twice (diff) | |
download | sparse-a8594de2db28e4489debd83cdc4cb62f96f339e0.tar.gz sparse-a8594de2db28e4489debd83cdc4cb62f96f339e0.tar.bz2 sparse-a8594de2db28e4489debd83cdc4cb62f96f339e0.zip |
graph: Show position in basic block nodes
Change the label for basic block nodes from the basic block address to the
position (file, line, column) of the basic block.
Signed-off-by: Josh Triplett <josh@freedesktop.org>
Diffstat (limited to 'graph.c')
-rw-r--r-- | graph.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -27,7 +27,8 @@ static void graph_ep(struct entrypoint *ep) printf("ep%p [label=\"%s\",shape=ellipse];\n", ep, show_ident(ep->name->ident)); FOR_EACH_PTR(ep->bbs, bb) { - printf("bb%p [shape=record,label=\"bb at %p\"]\n", bb, bb); + printf("bb%p [shape=record,label=\"%s:%d:%d\"]\n", bb, + stream_name(bb->pos.stream), bb->pos.line, bb->pos.pos); } END_FOR_EACH_PTR(bb); FOR_EACH_PTR(ep->bbs, bb) { struct basic_block *child; |