]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
Use sorted container to do the comparisons
authorPetr Machata <pmachata@redhat.com>
Mon, 2 Feb 2009 17:02:31 +0000 (18:02 +0100)
committerPetr Machata <pmachata@redhat.com>
Mon, 2 Feb 2009 17:02:50 +0000 (18:02 +0100)
src/dwarflint-hl.cc

index c499a18bf1465d6837a89a32c971ddff6f6b9334..1c7c495d3ddcee20b2e83f4b42584fed6166a1be 100644 (file)
@@ -66,8 +66,9 @@ check_matching_ranges (Dwarf *dwarf)
       where_reset_1 (&where_ref, 0);
       where_reset_2 (&where_ref, cu.offset ());
 
-      const elfutils::dwarf::arange_list &cu_aranges = i->second;
-      const elfutils::dwarf::ranges &cu_ranges = cu.ranges ();
+      std::set<elfutils::dwarf::ranges::key_type>
+       cu_aranges = i->second,
+       cu_ranges = cu.ranges ();
 
       typedef std::vector <elfutils::dwarf::arange_list::value_type> range_vec;
       range_vec missing;