mirror of
git://sourceware.org/git/libabigail.git
synced 2025-01-03 07:52:04 +00:00
dwarf-reader: Support creating functions from DW_TAG_inlined_subroutine
Update the assert in build_function_decl to work on DW_TAG_inlined_subroutine DIEs. * src/abg-dwarf-reader.cc (build_function_decl): Loosen the assert to accept DW_TAG_inlined_subroutine DIEs. Signed-off-by: Dodji Seketeli <dodji@redhat.com>
This commit is contained in:
parent
908f56e1b5
commit
c68bcc6dbf
@ -15348,7 +15348,8 @@ build_function_decl(reader& rdr,
|
||||
function_decl_sptr result = fn;
|
||||
if (!die)
|
||||
return result;
|
||||
ABG_ASSERT(dwarf_tag(die) == DW_TAG_subprogram);
|
||||
int tag = dwarf_tag(die);
|
||||
ABG_ASSERT(tag == DW_TAG_subprogram || tag == DW_TAG_inlined_subroutine);
|
||||
|
||||
if (!die_is_public_decl(die))
|
||||
return result;
|
||||
|
Loading…
Reference in New Issue
Block a user