Commit 37cca19d authored by Christoph Mallon's avatar Christoph Mallon
Browse files

cleanup: Simplify 'dump_compound_members()' a bit.

parent bdd950d1
......@@ -660,13 +660,9 @@ static void dump_compound_members(FILE *const F, ir_type const *const type)
fprintf(F, "\n members:\n");
for (size_t i = 0, n = get_compound_n_members(type); i < n; ++i) {
const ir_entity *mem = get_compound_member(type, i);
if (is_method_entity(mem)) {
if (!(verbosity & dump_verbosity_methods))
continue;
} else if (!(verbosity & dump_verbosity_fields))
continue;
dump_entity_to_file_prefix(F, mem, " ");
ir_entity const *const mem = get_compound_member(type, i);
if (verbosity & (is_method_entity(mem) ? dump_verbosity_methods : dump_verbosity_fields))
dump_entity_to_file_prefix(F, mem, " ");
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment