From: Dodji Seketeli Date: Wed, 27 Sep 2017 13:00:05 +0000 (+0200) Subject: Renamed offset_offset_map type name into offset_offset_map_type X-Git-Tag: upstream/1.0~22 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=866535fbfd68582244f23e9a57fdce21e4785cde;p=platform%2Fupstream%2Flibabigail.git Renamed offset_offset_map type name into offset_offset_map_type While looking into something else, I realized that for consistency, the name of the offset_offset_map type should be offset_offset_map_type. So I just did the change. * src/abg-dwarf-reader.cc (offset_offset_map_type): Renamed offset_offset_map into this. (read_context::{primary_die_parent_map_, alternate_die_parent_map_, type_section_die_parent_map_}): Adjust the type of these data members. (read_context::{die_parent_map, type_section_die_parent_map}): Adjust the type of these member functions. (read_context::{build_die_parent_relations_under, get_parent_die}): Adjust for the type name in these functions. Signed-off-by: Dodji Seketeli --- diff --git a/src/abg-dwarf-reader.cc b/src/abg-dwarf-reader.cc index 602ac7e4..225cb5e3 100644 --- a/src/abg-dwarf-reader.cc +++ b/src/abg-dwarf-reader.cc @@ -183,7 +183,7 @@ typedef stack scope_stack_type; /// Convenience typedef for a map which key is a dwarf offset. The /// value is also a dwarf offset. -typedef unordered_map offset_offset_map; +typedef unordered_map offset_offset_map_type; /// Convenience typedef for a map which key is a string and which /// value is a vector of smart pointer to a class. @@ -2881,7 +2881,7 @@ public: translation_unit_sptr cur_tu_; scope_decl_sptr nil_scope_; scope_stack_type scope_stack_; - offset_offset_map primary_die_parent_map_; + offset_offset_map_type primary_die_parent_map_; // A map that associates each tu die to a vector of unit import // points, in the main debug info tu_die_imported_unit_points_map_type tu_die_imported_unit_points_map_; @@ -2891,8 +2891,8 @@ public: tu_die_imported_unit_points_map_type type_units_tu_die_imported_unit_points_map_; // A DIE -> parent map for DIEs coming from the alternate debug info // file. - offset_offset_map alternate_die_parent_map_; - offset_offset_map type_section_die_parent_map_; + offset_offset_map_type alternate_die_parent_map_; + offset_offset_map_type type_section_die_parent_map_; list var_decls_to_add_; addr_elf_symbol_sptr_map_sptr fun_addr_sym_map_; // On PPC64, the function entry point address is different from the @@ -5432,7 +5432,7 @@ public: /// @param source where the DIEs in the map come from. /// /// @return the DIE -> parent map. - const offset_offset_map& + const offset_offset_map_type& die_parent_map(die_source source) const {return const_cast(this)->die_parent_map(source);} @@ -5442,7 +5442,7 @@ public: /// @param source where the DIEs in the map come from. /// /// @return the DIE -> parent map. - offset_offset_map& + offset_offset_map_type& die_parent_map(die_source source) { switch (source) @@ -5460,11 +5460,11 @@ public: return primary_die_parent_map_; } - const offset_offset_map& + const offset_offset_map_type& type_section_die_parent_map() const {return type_section_die_parent_map_;} - offset_offset_map& + offset_offset_map_type& type_section_die_parent_map() {return type_section_die_parent_map_;} @@ -7714,7 +7714,7 @@ public: if (!die) return; - offset_offset_map& parent_of = die_parent_map(source); + offset_offset_map_type& parent_of = die_parent_map(source); Dwarf_Die child; if (dwarf_child(die, &child) != 0) @@ -11690,8 +11690,8 @@ get_parent_die(const read_context& ctxt, die_source source = NO_DEBUG_INFO_DIE_SOURCE; assert(ctxt.get_die_source(die, source)); - const offset_offset_map& m = ctxt.die_parent_map(source); - offset_offset_map::const_iterator i = m.find(dwarf_dieoffset(die)); + const offset_offset_map_type& m = ctxt.die_parent_map(source); + offset_offset_map_type::const_iterator i = m.find(dwarf_dieoffset(die)); if (i == m.end()) return false;