X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Fbedump.c;h=1e43f3864884e168ea4147918983ebf7fb27e72e;hb=6a0fe628ac10e271247897637bf68a7df0909de9;hp=74dc9fe8805ea26bf7e88b4a40b6d9cdc43fc39d;hpb=ee7d02f0224c71ad158f07c193d731ad7762c884;p=libfirm diff --git a/ir/be/bedump.c b/ir/be/bedump.c index 74dc9fe88..1e43f3864 100644 --- a/ir/be/bedump.c +++ b/ir/be/bedump.c @@ -56,11 +56,11 @@ static void dump_ifg_edges(FILE *F, const be_ifg_t *ifg) if (get_irn_node_nr(node) >= get_irn_node_nr(neighbour)) continue; - fprintf(F, "edge: {sourcename: \""); - PRINT_NODEID(node); - fprintf(F, "\" targetname: \""); - PRINT_NODEID(neighbour); - fprintf(F, "\" arrowstyle:none class:1}\n"); + fprintf(F, "edge: {sourcename: "); + print_nodeid(F, node); + fprintf(F, " targetname: "); + print_nodeid(F, neighbour); + fprintf(F, " arrowstyle:none class:1}\n"); } } } @@ -84,20 +84,17 @@ void be_dump_ifg(FILE *F, ir_graph *irg, const be_ifg_t *ifg) static void dump_affinity_edges(FILE *F, const copy_opt_t *co, bool dump_costs, bool dump_colors) { - affinity_node_t *a; co_gs_foreach_aff_node(co, a) { - neighb_t *n; - co_gs_foreach_neighb(a, n) { /* edges are bidirection, dumping one direction is enough */ if (get_irn_node_nr(a->irn) >= get_irn_node_nr(n->irn)) continue; - fprintf(F, "edge: {sourcename: \""); - PRINT_NODEID(a->irn); - fprintf(F, "\" targetname: \""); - PRINT_NODEID(n->irn); - fprintf(F, "\" arrowstyle:none"); + fprintf(F, "edge: {sourcename: "); + print_nodeid(F, a->irn); + fprintf(F, " targetname: "); + print_nodeid(F, n->irn); + fprintf(F, " arrowstyle:none"); if (dump_costs) fprintf(F, " label:\"%d\"", n->costs); @@ -155,7 +152,7 @@ void be_dump_liveness_block(void *context, FILE *F, const ir_node *bl) { if (is_Block(bl)) { be_lv_t *lv = (be_lv_t*)context; - be_lv_info_t *info = (be_lv_info_t*)ir_nodehashmap_get(&lv->map, bl); + be_lv_info_t *info = ir_nodehashmap_get(be_lv_info_t, &lv->map, bl); fprintf(F, "liveness:\n"); if (info != NULL) {