mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-25 04:49:54 +08:00
Avoid a copy constructor call.
This commit is contained in:
@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user