[PATCH] D52051: [LLD] [COFF] Avoid copying of chunk vectors. NFC.

Martin Storsjö via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 13 23:11:00 PDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rL342205: [COFF] Avoid copying of chunk vectors. NFC. (authored by mstorsjo, committed by ).

Changed prior to commit:
  https://reviews.llvm.org/D52051?vs=165356&id=165430#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D52051

Files:
  lld/trunk/COFF/Writer.cpp


Index: lld/trunk/COFF/Writer.cpp
===================================================================
--- lld/trunk/COFF/Writer.cpp
+++ lld/trunk/COFF/Writer.cpp
@@ -469,7 +469,7 @@
   // '$' and all following characters in input section names are
   // discarded when determining output section. So, .text$foo
   // contributes to .text, for example. See PE/COFF spec 3.2.
-  for (auto Pair : Map) {
+  for (auto &Pair : Map) {
     StringRef Name = getOutputSectionName(Pair.first.first);
     uint32_t OutChars = Pair.first.second;
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D52051.165430.patch
Type: text/x-patch
Size: 536 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180914/a3d67ba8/attachment.bin>


More information about the llvm-commits mailing list