]> sourceware.org Git - libabigail.git/commit
Accept base classes which types are compatible with class type
authorDodji Seketeli <dodji@redhat.com>
Wed, 26 Aug 2015 10:06:46 +0000 (12:06 +0200)
committerDodji Seketeli <dodji@redhat.com>
Sat, 29 Aug 2015 14:23:15 +0000 (16:23 +0200)
commit85feb73bad0783ece888bf625077f1d660f4e378
treefd520063576c244f8c2c04f63677385009235e15
parent1bac4fd992ef09510c68996674093f186174f8b7
Accept base classes which types are compatible with class type

Until now, a base class had to be a class itself.  It couldn't be a
typedef to a class, for instance. Clang's debug info does allow base
classes which are compatible with classes (e.g, typedefs of classes),
which is correct.  We ought to accept that.  Hence this patch.

* include/abg-fwd.h (is_compatible_with_class_type): Declare a new
overload.
* src/abg-dwarf-reader.cc (build_class_type_and_add_to_ir): Rather
than requiring that base classes be of class type, just require
that they be compatible with class types.
* src/abg-ir.cc (is_compatible_with_class_type): Define a new
overload.

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