mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-25 13:27:26 +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>
|
2015-04-06 Ilya Tocar <ilya.tocar@intel.com>
|
||||||
|
|
||||||
PR gold/17641
|
PR gold/17641
|
||||||
|
@ -53,9 +53,10 @@ Garbage_collection::do_transitive_closure()
|
|||||||
this->section_reloc_map().find(entry);
|
this->section_reloc_map().find(entry);
|
||||||
if (find_it == this->section_reloc_map().end())
|
if (find_it == this->section_reloc_map().end())
|
||||||
continue;
|
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.
|
// 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 != v.end();
|
||||||
++it_v)
|
++it_v)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user