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@xxxxxxxxxxxxxxx> --- graph.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/graph.c b/graph.c index db940ae..ede3dfa 100644 --- a/graph.c +++ b/graph.c @@ -27,7 +27,8 @@ static void graph_ep(struct entrypoint * 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; -- 1.4.1.1 - To unsubscribe from this list: send the line "unsubscribe linux-sparse" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html