mirror of
git://sourceware.org/git/libabigail.git
synced 2025-01-27 19:52:52 +00:00
435f1520d7
* include/abg-ir.h (type_base::get_{size,alignment}_in_bits): Make this virtual. (typedef_decl::get_{size,alignment}_in_bits): Add new member functions. Get the size,alignment from the underlying type and update the current size/alignment if they differ. Keep in mind that the size of an underlying class_decl can change over its lifetime, given how the dwarf reader reads the type information, i.e, there can be a DIE for a class type with no size information that will lead to the creation of a class_decl with size zero. Later during the DWARF reading process, another DIE will supplement the type information, adding size information to that class_decl. In between, a typedef_decl might have been created with the first version of the class_decl that has a zero size. I guess this should be extended to the other type constructs that have an underlying type (qualified types, references and pointers). Signed-off-by: Dodji Seketeli <dodji@redhat.com> |
||
---|---|---|
.. | ||
abg-comp-filter.h | ||
abg-comparison.h | ||
abg-config.h | ||
abg-corpus.h | ||
abg-diff-utils.h | ||
abg-dwarf-reader.h | ||
abg-fwd.h | ||
abg-hash.h | ||
abg-ir.h | ||
abg-libxml-utils.h | ||
abg-libzip-utils.h | ||
abg-reader.h | ||
abg-sptr-utils.h | ||
abg-traverse.h | ||
abg-version.h.in | ||
abg-viz-common.h | ||
abg-viz-dot.h | ||
abg-viz-svg.h | ||
abg-writer.h | ||
Makefile.am |