X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fir%2Firdump.c;h=bd5c5baeebc6d7e18e1a62f15eb7459d3baa23db;hb=8399216d8aebc713bbda04b6e3e250a1d52b20bf;hp=b190aa0334072a74bf1f192de8b02c0274c78dc6;hpb=f6776724ecac5d72d0d839be19cb08bcfd03b286;p=libfirm diff --git a/ir/ir/irdump.c b/ir/ir/irdump.c index b190aa033..bd5c5baee 100644 --- a/ir/ir/irdump.c +++ b/ir/ir/irdump.c @@ -611,7 +611,7 @@ static int dump_node_typeinfo(FILE *F, ir_node *n) { if (get_irg_typeinfo_state(current_ir_graph) == irg_typeinfo_consistent || get_irg_typeinfo_state(current_ir_graph) == irg_typeinfo_inconsistent) { type *tp = get_irn_typeinfo_type(n); - if (tp != none_type) + if (tp != firm_none_type) fprintf(F, " [%s]", get_type_name_ex(tp, &bad)); else fprintf(F, " []"); @@ -2056,9 +2056,9 @@ static void descend_and_dump(FILE *F, ir_node *n, int depth, pset *mark_set) { pset_insert_ptr(mark_set, n); if (depth > 0) { + int i, start = is_Block(n) ? 0 : -1; dump_whole_node(n, F); - int start = is_Block(n) ? 0 : -1; - for (int i = start; i < get_irn_arity(n); ++i) + for (i = start; i < get_irn_arity(n); ++i) descend_and_dump(F, get_irn_n(n, i), depth-1, mark_set); } else { dump_node(F, n);