]> sourceware.org Git - libabigail.git/commit
Factorize out parsing of integral types
authorDodji Seketeli <dodji@redhat.com>
Tue, 1 Nov 2016 10:16:55 +0000 (11:16 +0100)
committerDodji Seketeli <dodji@redhat.com>
Thu, 3 Nov 2016 14:13:17 +0000 (15:13 +0100)
commitc4f75fbadae87dfd79c1cba5338464a015f4a270
treeed5f87e4ed9f6e2383663461aabb62b7407a72c4
parent1bc96d17e134ce2182a6c326e16ee371d174db39
Factorize out parsing of integral types

Until now, integral_type has been just a "private" helper type used in
the building of a type_decl.

Now it's going to be helpful in determining the name of an integral
type, directly from DIEs -- without having to build a type_decl.

This patch factorizes out the parsing and building of an integral_type
by introducing a src/abg-ir-priv.h file that is meant to declare
interfaces that are going to be private to libabigail.so but usable by
all of its modules.

* src/abg-ir-priv.h: New file.
* src/Makefile.am: Add abg-ir-priv.h to the build system.
* src/abg-ir.cc: Include the new abg-ir-priv.h header file.
(class_integral_type): Move this type
declaration to the new abg-ir-priv.h header.
(integral_type::modifiers_type): Make this non-static.
(parse_integral_type): This new overload is a factorized out of
...
(integral_type::integral_type): ... here.

Signed-off-by: Dodji Seketeli <dodji@redhat.com>
src/Makefile.am
src/abg-ir-priv.h [new file with mode: 0644]
src/abg-ir.cc
This page took 0.033414 seconds and 5 git commands to generate.