Renamed offset_offset_map type name into offset_offset_map_type
authorDodji Seketeli <dodji@redhat.com>
Wed, 27 Sep 2017 13:00:05 +0000 (15:00 +0200)
committerDodji Seketeli <dodji@redhat.com>
Wed, 27 Sep 2017 14:00:14 +0000 (16:00 +0200)
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 <dodji@redhat.com>
src/abg-dwarf-reader.cc

index 602ac7e49bfe3d0d39420755811ce858bb0d6b30..225cb5e39a9e22123e81e5faa15263ce8439142f 100644 (file)
@@ -183,7 +183,7 @@ typedef stack<scope_decl*> scope_stack_type;
 
 /// Convenience typedef for a map which key is a dwarf offset.  The
 /// value is also a dwarf offset.
-typedef unordered_map<Dwarf_Off, Dwarf_Off> offset_offset_map;
+typedef unordered_map<Dwarf_Off, Dwarf_Off> 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_decl_sptr>          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<read_context*>(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;