mirror of
git://sourceware.org/git/libabigail.git
synced 2024-12-17 15:34:34 +00:00
Really Avoid trying to build IR nodes for non-public functions
* src/abg-dwarf-reader.cc (build_ir_node_from_die): For the DW_TAG_subprogram case, bail out early if the current function is non-public. Signed-off-by: Dodji Seketeli <dodji@redhat.com>
This commit is contained in:
parent
fd21fea696
commit
a8cd3e5152
@ -2963,6 +2963,9 @@ build_ir_node_from_die(read_context& ctxt,
|
||||
{
|
||||
Dwarf_Die spec_die;
|
||||
scope_decl_sptr scop;
|
||||
if (!is_public_decl(die))
|
||||
break;
|
||||
|
||||
if (die_die_attribute(die, DW_AT_specification, spec_die))
|
||||
{
|
||||
scop = get_scope_for_die(ctxt, &spec_die);
|
||||
|
Loading…
Reference in New Issue
Block a user