]> sourceware.org Git - libabigail.git/commit
Do not build DIE -> parent map just because we see an asm TU
authorDodji Seketeli <dodji@redhat.com>
Wed, 20 Feb 2019 10:25:39 +0000 (11:25 +0100)
committerDodji Seketeli <dodji@redhat.com>
Wed, 20 Feb 2019 10:25:39 +0000 (11:25 +0100)
commit3745de05c93957cf014488419596cc5344bd57c2
treedff8fdde8c4a469fcdeece15f9e3bf6f0ac91dec
parente9c66d2d75e690ee19778c627a4309489e5f443e
Do not build DIE -> parent map just because we see an asm TU

For languages like C that don't have namespaces, we don't need to
build the DIE -> parent map, and that speeds up the analysis of the
ELF binary in the DWARF reader.

Unfortunately, just because we are seeing some MIPS assembler
translation unit, dwarf_reader::read_context::build_die_parent_maps
unnecessarily builds the DIE -> parent map, making the ELF binary
analysis slower.

This patch introduces the new function
dwarf_reader::read_context::do_we_build_die_parent_maps to make the
decision about building the DIE -> parent map in a central place.  And
it makes dwarf_reader::read_context::build_die_parent_maps use it.

With this, analysing the linux kernel becomes faster again.

Signed-off-by: Dodji Seketeli <dodji@redhat.com>
src/abg-dwarf-reader.cc
This page took 0.029558 seconds and 5 git commands to generate.