mirror of
git://sourceware.org/git/libabigail.git
synced 2024-12-30 05:42:05 +00:00
Simplify canonicalizing handling for typedefs
* src/abg-dwarf-reader.cc (build_ir_node_from_die): For typedefs, we don't need to test that the current scope is a class to know that we are looking at a member type. Just looking at the is_member flag is enough. Signed-off-by: Dodji Seketeli <dodji@redhat.com>
This commit is contained in:
parent
cab7817dd0
commit
5b33223cb7
@ -7149,13 +7149,10 @@ build_ir_node_from_die(read_context& ctxt,
|
|||||||
called_from_public_decl,
|
called_from_public_decl,
|
||||||
where_offset);
|
where_offset);
|
||||||
result = add_decl_to_scope(t, scope);
|
result = add_decl_to_scope(t, scope);
|
||||||
if (// t is not a member type
|
if (t && !is_member)
|
||||||
t && !is_member && !is_class_type(scope))
|
maybe_canonicalize_type(dwarf_dieoffset(die),
|
||||||
{
|
die_is_from_alt_di,
|
||||||
maybe_canonicalize_type(dwarf_dieoffset(die),
|
ctxt);
|
||||||
die_is_from_alt_di,
|
|
||||||
ctxt);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user