This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[patch][gold] Don't copy a std::vector.
- From: Rafael EspÃndola <rafael dot espindola at gmail dot com>
- To: Binutils <binutils at sourceware dot org>
- Cc: Cary Coutant <ccoutant at google dot com>
- Date: Thu, 5 Feb 2015 08:51:02 -0500
- Subject: [patch][gold] Don't copy a std::vector.
- Authentication-results: sourceware.org; auth=none
Just a small optimization.
2015-02-04 Rafael Ãvila de EspÃndola <rafael.espindola@gmail.com>
* object.cc (write_local_symbols): avoid std::vector copy.
Cheers,
Rafael
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<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);