From d6cd4cd86e3464bd672bb916cea915298dcfd6a9 Mon Sep 17 00:00:00 2001 From: Michael Beck Date: Mon, 25 Apr 2011 23:01:27 +0200 Subject: [PATCH] Slightly improved type dumper. --- ir/ir/irdump.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/ir/ir/irdump.c b/ir/ir/irdump.c index 8b37673fa..d1c5eb676 100644 --- a/ir/ir/irdump.c +++ b/ir/ir/irdump.c @@ -1767,11 +1767,11 @@ void dump_type_node(FILE *F, ir_type *tp) { fprintf(F, "node: {title: "); PRINT_TYPEID(tp); - fprintf(F, " label: \"%s ", get_type_tpop_name(tp)); + fprintf(F, " label: \""); if (tp->dbi != NULL) { - char buf[256]; + char buf[1024]; ir_print_type(buf, sizeof(buf), tp); - fprintf(F, "'%s'", buf); + fprintf(F, "%s '%s'", get_type_tpop_name(tp), buf); } else { ir_fprintf(F, "%+F", tp); } @@ -1828,7 +1828,9 @@ static void dump_entity_initializer(FILE *F, const ir_entity *ent) (void) ent; } -/** Dumps a type or entity and its edges. */ +/** + * type-walker: Dumps a type or entity and its edges. + */ static void dump_type_info(type_or_ent tore, void *env) { FILE *F = (FILE*)env; -- 2.20.1