]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
Merge branch 'dwarf' into roland/dwarf_output-tracker
authorRoland McGrath <roland@redhat.com>
Mon, 17 Aug 2009 05:26:01 +0000 (22:26 -0700)
committerRoland McGrath <roland@redhat.com>
Mon, 17 Aug 2009 05:26:01 +0000 (22:26 -0700)
Conflicts:
libdw/c++/dwarf_tracker

1  2 
libdw/c++/dwarf
libdw/c++/dwarf_edit
libdw/c++/dwarf_output
libdw/c++/dwarf_tracker

diff --cc libdw/c++/dwarf
Simple merge
Simple merge
Simple merge
index 9d3b9bbae913858d716ef788b417decc817cda5c,ae4179f2023b2cd8835c8114ae389f0cacb1c2e8..cb89534317488574b7ba70b5acfa815c98684f6c
@@@ -354,26 -355,12 +355,27 @@@ namespace elfutil
      tracker1 _m_left;
      tracker2 _m_right;
  
 -    typedef std::tr1::unordered_map<
 -      dwarf::debug_info_entry::identity_type,
 -      std::pair<const die2 *,
 -              std::tr1::unordered_set<dwarf::debug_info_entry::identity_type>
 -              >
 -      > equiv_map;
 +    struct ref_hasher : public std::unary_function<die2, size_t>
 +    {
 +      inline size_t operator () (const die2 &i) const
 +      {
 +      return i->identity ();
 +      }
 +    };
 +
 +    struct same_ref : public std::equal_to<die2>
 +    {
 +      inline bool operator () (const die2 &a, const die2 &b) const
 +      {
 +      return a->identity () == b->identity ();
 +      }
 +    };
 +
 +    typedef std::pair<const die2 *,
 +                    std::tr1::unordered_set<die2, ref_hasher, same_ref>
 +                    > equiv_list;
-     typedef std::tr1::unordered_map< ::Dwarf_Off, equiv_list> equiv_map;
++    typedef std::tr1::unordered_map<dwarf::debug_info_entry::identity_type,
++                                  equiv_list> equiv_map;
      equiv_map *_m_equiv;
      bool _m_delete_equiv;