summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDodji Seketeli <dodji@redhat.com>2016-10-11 15:08:13 +0200
committerDodji Seketeli <dodji@redhat.com>2016-10-11 15:12:42 +0200
commit7458409169f6c50f70929c1ebba998bbb121fe92 (patch)
tree935c2792ea9e15c1c187fd5642dcf418cd3e3547
parentMisc cleanups here and there (diff)
downloadlibabigail-7458409169f6c50f70929c1ebba998bbb121fe92.tar.gz
libabigail-7458409169f6c50f70929c1ebba998bbb121fe92.tar.bz2
libabigail-7458409169f6c50f70929c1ebba998bbb121fe92.tar.xz
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>
-rw-r--r--src/abg-dwarf-reader.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/abg-dwarf-reader.cc b/src/abg-dwarf-reader.cc
index aeab809a..c2f08cd2 100644
--- a/src/abg-dwarf-reader.cc
+++ b/src/abg-dwarf-reader.cc
@@ -9014,6 +9014,7 @@ build_function_decl(read_context& ctxt,
9014 { 9014 {
9015 function_type_sptr fn_type(build_function_type(ctxt, die, is_method, 9015 function_type_sptr fn_type(build_function_type(ctxt, die, is_method,
9016 where_offset)); 9016 where_offset));
9017 maybe_canonicalize_type(dwarf_dieoffset(die), source, ctxt);
9017 9018
9018 result.reset(is_method 9019 result.reset(is_method
9019 ? new class_decl::method_decl(fname, fn_type, 9020 ? new class_decl::method_decl(fname, fn_type,