From 7c92f22bbaece77706334c055c759cb224cea3c8 Mon Sep 17 00:00:00 2001 From: Christoph Mallon Date: Sat, 3 Sep 2011 16:45:22 +0200 Subject: [PATCH] Print the linkage of entities only once, not twice. --- ir/ir/irdumptxt.c | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/ir/ir/irdumptxt.c b/ir/ir/irdumptxt.c index f4cd8bbed..537416a3f 100644 --- a/ir/ir/irdumptxt.c +++ b/ir/ir/irdumptxt.c @@ -530,21 +530,18 @@ static void dump_entity_to_file_prefix(FILE *F, ir_entity *ent, const char *pref } } - fprintf(F, "%s linkage:", prefix); - dump_entity_linkage(F, ent); - if (is_Method_type(get_entity_type(ent))) { unsigned mask = get_entity_additional_properties(ent); unsigned cc = get_method_calling_convention(get_entity_type(ent)); ir_graph *irg = get_entity_irg(ent); if (irg) { - fprintf(F, "\n%s estimated node count: %u", prefix, get_irg_estimated_node_cnt(irg)); - fprintf(F, "\n%s maximum node index: %u", prefix, get_irg_last_idx(irg)); + fprintf(F, "%s estimated node count: %u\n", prefix, get_irg_estimated_node_cnt(irg)); + fprintf(F, "%s maximum node index: %u\n", prefix, get_irg_last_idx(irg)); } if (mask) { - fprintf(F, "\n%s additional prop: ", prefix); + fprintf(F, "%s additional prop: ", prefix); if (mask & mtp_property_const) fputs("const_function, ", F); if (mask & mtp_property_pure) fputs("pure_function, ", F); @@ -557,8 +554,9 @@ static void dump_entity_to_file_prefix(FILE *F, ir_entity *ent, const char *pref if (mask & mtp_property_runtime) fputs("runtime_function, ", F); if (mask & mtp_property_private) fputs("private_function, ", F); if (mask & mtp_property_has_loop) fputs("has_loop_function, ", F); + fputc('\n', F); } - fprintf(F, "\n%s calling convention: ", prefix); + fprintf(F, "%s calling convention: ", prefix); if (cc & cc_reg_param) fputs("regparam, ", F); if (cc & cc_this_call) fputs("thiscall, ", F); if (cc & cc_compound_ret) fputs("compound_ret, ", F); @@ -572,10 +570,8 @@ static void dump_entity_to_file_prefix(FILE *F, ir_entity *ent, const char *pref fputs(cc & cc_last_on_top ? "last param on top, " : "first param on top, ", F); fputs(cc & cc_callee_clear_stk ? "callee clear stack" : "caller clear stack", F); } - fprintf(F, "\n%s vtable number: %u", prefix, get_entity_vtable_number(ent)); + fprintf(F, "\n%s vtable number: %u\n", prefix, get_entity_vtable_number(ent)); } - - fputc('\n', F); } else { /* no entattrs */ ir_fprintf(F, "%s(%3d:%d) %+F: %s", prefix, get_entity_offset(ent), get_entity_offset_bits_remainder(ent), -- 2.20.1