Avoid a copy constructor call.
This commit is contained in:
parent
dae148f3b9
commit
9dbb4b021d
2 changed files with 8 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
2015-04-06 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
|
||||
|
||||
* gc.cc (Garbage_collection::do_transitive_closure): Avoid a copy
|
||||
constructor call.
|
||||
|
||||
2015-04-06 Ilya Tocar <ilya.tocar@intel.com>
|
||||
|
||||
PR gold/17641
|
||||
|
|
|
@ -53,9 +53,10 @@ Garbage_collection::do_transitive_closure()
|
|||
this->section_reloc_map().find(entry);
|
||||
if (find_it == this->section_reloc_map().end())
|
||||
continue;
|
||||
Garbage_collection::Sections_reachable v = find_it->second;
|
||||
const Garbage_collection::Sections_reachable &v = find_it->second;
|
||||
// Scan the vector of references for each work_list entry.
|
||||
for (Garbage_collection::Sections_reachable::iterator it_v = v.begin();
|
||||
for (Garbage_collection::Sections_reachable::const_iterator it_v =
|
||||
v.begin();
|
||||
it_v != v.end();
|
||||
++it_v)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue