mirror of
git://sourceware.org/git/libabigail.git
synced 2024-12-24 18:52:15 +00:00
Canonicalize function types when reading from DWARF
Up until now, only function types pointed to by a pointer to function was canonicalized. This patch also canonicalizes function types that are used as types for function declarations. * src/abg-dwarf-reader.cc (build_function_decl): Canonicalize function types. Signed-off-by: Dodji Seketeli <dodji@redhat.com>
This commit is contained in:
parent
0f3af2b3bc
commit
7458409169
@ -9014,6 +9014,7 @@ build_function_decl(read_context& ctxt,
|
||||
{
|
||||
function_type_sptr fn_type(build_function_type(ctxt, die, is_method,
|
||||
where_offset));
|
||||
maybe_canonicalize_type(dwarf_dieoffset(die), source, ctxt);
|
||||
|
||||
result.reset(is_method
|
||||
? new class_decl::method_decl(fname, fn_type,
|
||||
|
Loading…
Reference in New Issue
Block a user