summaryrefslogtreecommitdiffhomepage
path: root/ir/ir
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2017-04-03 22:14:27 +0200
committerChristoph Mallon <christoph.mallon@gmx.de>2017-04-07 16:58:15 +0200
commit8f7be9fca5a9e783e91d3f778a64fb80b5fddf56 (patch)
tree20382af5c81cb8c4bef9219741c9f137d214b156 /ir/ir
parentc3fde3018df263ab08c6b2f7f7a2b53a84d04675 (diff)
Small cleanup.
Diffstat (limited to 'ir/ir')
-rw-r--r--ir/ir/irdumptxt.c21
1 files changed, 11 insertions, 10 deletions
diff --git a/ir/ir/irdumptxt.c b/ir/ir/irdumptxt.c
index 45c84f8..98ac002 100644
--- a/ir/ir/irdumptxt.c
+++ b/ir/ir/irdumptxt.c
@@ -755,18 +755,19 @@ static void dump_type_details(FILE *const F, ir_type const *const tp)
void dump_type_to_file(FILE *const F, const ir_type *const tp)
{
ir_fprintf(F, "%+F", tp);
- if (verbosity & dump_verbosity_onlynames) { fprintf(F, "\n"); return; }
+ if (!(verbosity & dump_verbosity_onlynames)) {
+ dump_type_details(F, tp);
- dump_type_details(F, tp);
+ fprintf(F, " state: %s,\n", get_type_state_name(get_type_state(tp)));
+ fprintf(F, " size: %2u Bytes,\n", get_type_size(tp));
+ fprintf(F, " alignment: %2u Bytes,\n", get_type_alignment(tp));
+ ir_mode *const mode = get_type_mode(tp);
+ if (mode)
+ fprintf(F, " mode: %s,\n", get_mode_name(mode));
- fprintf(F, " state: %s,\n", get_type_state_name(get_type_state(tp)));
- fprintf(F, " size: %2u Bytes,\n", get_type_size(tp));
- fprintf(F, " alignment: %2u Bytes,\n", get_type_alignment(tp));
- ir_mode *const mode = get_type_mode(tp);
- if (mode)
- fprintf(F, " mode: %s,\n", get_mode_name(mode));
-
- fprintf(F, "\n\n");
+ fprintf(F, "\n");
+ }
+ fprintf(F, "\n");
}
void dump_types_as_text(FILE *const out)