libabigail
|
The private data of the corpus type. More...
#include <abg-corpus-priv.h>
Public Member Functions | |
priv (const string &p, const environment &e) | |
~priv () | |
Destructor of the corpus::priv type. More... | |
const string_elf_symbols_map_type & | get_fun_symbol_map () const |
Return a map from name to function symbol for this corpus. More... | |
unordered_set< interned_string, hash_interned_string > * | get_public_types_pretty_representations () |
Getter of the set of pretty representation of types that are reachable from public interfaces (global functions and variables). More... | |
const elf_symbols & | get_sorted_fun_symbols () const |
Return a sorted vector of function symbols for this corpus. More... | |
const elf_symbols & | get_sorted_undefined_fun_symbols () const |
Getter for a sorted vector of the function symbols undefined in this corpus. More... | |
const elf_symbols & | get_sorted_undefined_var_symbols () const |
Getter for a sorted vector of the variable symbols undefined in this corpus. More... | |
const elf_symbols & | get_sorted_var_symbols () const |
Getter for the sorted vector of variable symbols for this corpus. More... | |
type_maps & | get_types () |
Get the maps that associate a name to a certain kind of type. More... | |
const type_maps & | get_types () const |
Get the maps that associate a name to a certain kind of type. More... | |
const string_elf_symbols_map_type & | get_undefined_fun_symbol_map () const |
Return a map from name to undefined function symbol for this corpus. More... | |
const string_elf_symbols_map_type & | get_undefined_var_symbol_map () const |
Return a map from name to undefined variable symbol for this corpus. More... | |
const elf_symbols & | get_unreferenced_function_symbols () const |
Return a list of symbols that are not referenced by any function of corpus::get_functions(). More... | |
const elf_symbols & | get_unreferenced_variable_symbols () const |
Return a list of symbols that are not referenced by any variable of corpus::get_variables(). More... | |
const string_elf_symbols_map_type & | get_var_symbol_map () const |
Return a map from name to variable symbol for this corpus. More... | |
std::unordered_set< function_decl * > * | lookup_functions (const interned_string &id) |
Lookup the function which has a given function ID. More... | |
Public Attributes | |
string | architecture_name |
unordered_map< string, type_base_sptr > | canonical_types_ |
bool | do_log |
const environment & | env |
corpus::exported_decls_builder_sptr | exported_decls_builder |
vector< const function_decl * > | fns |
string | format_major_version_number_ |
string | format_minor_version_number_ |
corpus_group * | group |
translation_units | members |
vector< string > | needed |
corpus::origin | origin_ |
string | path |
string_tu_map_type | path_tu_map |
unordered_set< interned_string, hash_interned_string > * | pub_type_pretty_reprs_ |
vector< string > | regex_patterns_fns_to_keep |
vector< string > | regex_patterns_fns_to_suppress |
vector< string > | regex_patterns_vars_to_keep |
vector< string > | regex_patterns_vars_to_suppress |
string | soname |
functions | sorted_undefined_fns |
variables | sorted_undefined_vars |
vector< string > | sym_id_fns_to_keep |
vector< string > | sym_id_vars_to_keep |
symtab_reader::symtab_sptr | symtab_ |
type_maps | type_per_loc_map_ |
type_maps | types_ |
vector< type_base_wptr > | types_not_reachable_from_pub_ifaces_ |
functions_set | undefined_fns |
variables_set | undefined_vars |
vector< const var_decl * > | vars |
The private data of the corpus type.
Definition at line 724 of file abg-corpus-priv.h.
~priv | ( | ) |
Destructor of the corpus::priv type.
Definition at line 676 of file abg-corpus.cc.
const string_elf_symbols_map_type & get_fun_symbol_map | ( | ) | const |
Return a map from name to function symbol for this corpus.
Note that the first time this function is called, the map is built. Subsequent invocations of this function return the cached map that was built previously.
Definition at line 374 of file abg-corpus.cc.
unordered_set< interned_string, hash_interned_string > * get_public_types_pretty_representations | ( | ) |
Getter of the set of pretty representation of types that are reachable from public interfaces (global functions and variables).
Definition at line 636 of file abg-corpus.cc.
const elf_symbols & get_sorted_fun_symbols | ( | ) | const |
Return a sorted vector of function symbols for this corpus.
Note that the first time this function is called, the symbols are sorted and cached. Subsequent invocations of this function return the cached vector that was built previously.
Definition at line 349 of file abg-corpus.cc.
const elf_symbols & get_sorted_undefined_fun_symbols | ( | ) | const |
Getter for a sorted vector of the function symbols undefined in this corpus.
Definition at line 391 of file abg-corpus.cc.
const elf_symbols & get_sorted_undefined_var_symbols | ( | ) | const |
Getter for a sorted vector of the variable symbols undefined in this corpus.
Definition at line 536 of file abg-corpus.cc.
const elf_symbols & get_sorted_var_symbols | ( | ) | const |
Getter for the sorted vector of variable symbols for this corpus.
Note that the first time this function is called, it computes the sorted vector, caches the result and returns it. Subsequent invocations of this function just return the cached vector.
Definition at line 493 of file abg-corpus.cc.
type_maps & get_types | ( | ) |
Get the maps that associate a name to a certain kind of type.
Definition at line 333 of file abg-corpus.cc.
const type_maps & get_types | ( | ) | const |
Get the maps that associate a name to a certain kind of type.
Definition at line 338 of file abg-corpus.cc.
const string_elf_symbols_map_type & get_undefined_fun_symbol_map | ( | ) | const |
Return a map from name to undefined function symbol for this corpus.
Note that the first time this function is called, the map is built. Subsequent invocations of this function return the cached map that was built previously.
Definition at line 419 of file abg-corpus.cc.
const string_elf_symbols_map_type & get_undefined_var_symbol_map | ( | ) | const |
Return a map from name to undefined variable symbol for this corpus.
Note that the first time this function is called, the map is built. Subsequent invocations of this function return the cached map that was built previously.
Definition at line 564 of file abg-corpus.cc.
const elf_symbols & get_unreferenced_function_symbols | ( | ) | const |
Return a list of symbols that are not referenced by any function of corpus::get_functions().
Note that this function considers the list of function symbols to keep, that is provided by corpus::get_sym_ids_of_fns_to_keep(). If a given unreferenced function symbol is not in the list of functions to keep, then that symbol is dropped and will not be part of the resulting table of unreferenced symbol that is built.
Definition at line 441 of file abg-corpus.cc.
const elf_symbols & get_unreferenced_variable_symbols | ( | ) | const |
Return a list of symbols that are not referenced by any variable of corpus::get_variables().
Note that this function considers the list of variable symbols to keep, that is provided by corpus::get_sym_ids_of_vars_to_keep(). If a given unreferenced variable symbol is not in the list of variable to keep, then that symbol is dropped and will not be part of the resulting table of unreferenced symbol that is built.
Definition at line 586 of file abg-corpus.cc.
const string_elf_symbols_map_type & get_var_symbol_map | ( | ) | const |
Return a map from name to variable symbol for this corpus.
Note that the first time this function is called, the map is built. Subsequent invocations of this function return the cached map that was built previously.
Definition at line 519 of file abg-corpus.cc.
std::unordered_set< function_decl * > * lookup_functions | ( | const interned_string & | id | ) |
Lookup the function which has a given function ID.
Note that there can have been several functions with the same ID. This is because debug info can declare the same function in several different translation units. Normally, all these function should be equal. But still, this function returns all these functions.
id | the ID of the function to lookup. This ID must be either the result of invoking function::get_id() of elf_symbol::get_id_string(). |
id
, or nil if no function with that ID was found. Definition at line 662 of file abg-corpus.cc.