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:
Dodji Seketeli 2014-02-12 18:06:42 +01:00
parent fd21fea696
commit a8cd3e5152

View File

@ -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);