]> sourceware.org Git - libabigail.git/commit
PR23641 - confusion when a type definition DIE is matched by a supprspec and its...
authorDodji Seketeli <dodji@redhat.com>
Tue, 25 Sep 2018 10:17:52 +0000 (12:17 +0200)
committerDodji Seketeli <dodji@redhat.com>
Tue, 25 Sep 2018 11:07:44 +0000 (13:07 +0200)
commit342ce8d25cf1bdb8618474f95d4b85cb1d94425c
tree69d95a396b17c96f3d09e4ee496c1d8927e90963
parent90b4e7676c20c78ebebff14f8d4d58b8509f1012
PR23641 - confusion when a type definition DIE is matched by a supprspec and its decl DIEs aren't

This is a followup of the patch with commit hash 90b4e76.

It turns out that in some cases, when we see a suppressed private
class definition, we haven't *previously* seen any declaration-only
instance of it.  So we cannot use any pre-existing declaration-only
instance as an opaque type for the private type that is suppressed.

In that case, this patch creates (and uses) a declaration-only
instance for the suppressed private type definition.

* src/abg-dwarf-reader.cc (get_opaque_version_of_type): If no
pre-existing opaque version was found, a new one is created and
returned.  Take a needed "where_offset" parameter.
(build_ir_node_from_die): Adjust the call to
get_opaque_version_of_type.

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