From e0a1e121b39ac99e76b77b73cba1db40ef75c7c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20=C3=81vila=20de=20Esp=C3=ADndola?= Date: Tue, 17 Feb 2015 10:47:02 -0500 Subject: avoid std::vector copy. --- gold/ChangeLog | 4 ++++ gold/object.cc | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'gold') diff --git a/gold/ChangeLog b/gold/ChangeLog index 67efa58..5a72e98 100644 --- a/gold/ChangeLog +++ b/gold/ChangeLog @@ -1,5 +1,9 @@ 2015-02-17 Rafael Ávila de Espíndola + * object.cc (write_local_symbols): avoid std::vector copy. + +2015-02-17 Rafael Ávila de Espíndola + * merge.cc (get_output_offset): Use upper_bound instead of lower_bound. 2015-02-09 Mark Wielaard diff --git a/gold/object.cc b/gold/object.cc index 8f16fe7..c90b67e 100644 --- a/gold/object.cc +++ b/gold/object.cc @@ -2589,7 +2589,7 @@ Sized_relobj_file::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); -- cgit v1.1