avoid std::vector copy.

This commit is contained in:
Rafael Ávila de Espíndola 2015-02-17 10:47:02 -05:00
parent 45a4fb1a70
commit e0a1e121b3
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2015-02-17 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
* object.cc (write_local_symbols): avoid std::vector copy.
2015-02-17 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
* merge.cc (get_output_offset): Use upper_bound instead of lower_bound.

View File

@ -2589,7 +2589,7 @@ Sized_relobj_file<size, big_endian>::write_local_symbols(
dyn_oview = of->get_output_view(this->local_dynsym_offset_,
dyn_output_size);
const Output_sections out_sections(this->output_sections());
const Output_sections& out_sections(this->output_sections());
gold_assert(this->local_values_.size() == loccount);