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:
Dodji Seketeli 2016-10-11 15:08:13 +02:00
parent 0f3af2b3bc
commit 7458409169

View File

@ -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,