mirror of
git://sourceware.org/git/libabigail.git
synced 2025-01-01 23:12:05 +00:00
Canonicalize function types
This speeds up comparison of function types. * src/abg-dwarf-reader.cc (build_function_decl): Call maybe_canonicalize_type to canonicalize the function type. Signed-off-by: Dodji Seketeli <dodji@redhat.com>
This commit is contained in:
parent
43c227f4fd
commit
8ccea7f315
@ -130,6 +130,11 @@ die_location_address(Dwarf_Die* die,
|
||||
Dwarf_Addr& address,
|
||||
bool& is_tls_address);
|
||||
|
||||
static void
|
||||
maybe_canonicalize_type(Dwarf_Off die_offset,
|
||||
bool in_alt_di,
|
||||
read_context& ctxt);
|
||||
|
||||
/// Convert an elf symbol type (given by the ELF{32,64}_ST_TYPE
|
||||
/// macros) into an elf_symbol::type value.
|
||||
///
|
||||
@ -6977,6 +6982,8 @@ build_function_decl(read_context& ctxt,
|
||||
is_in_alt_di,
|
||||
result->get_type());
|
||||
|
||||
maybe_canonicalize_type(dwarf_dieoffset(die), is_in_alt_di, ctxt);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user