[lld] r315436 - Do not copy Sections vector.
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 10 22:13:16 PDT 2017
Author: ruiu
Date: Tue Oct 10 22:13:16 2017
New Revision: 315436
URL: http://llvm.org/viewvc/llvm-project?rev=315436&view=rev
Log:
Do not copy Sections vector.
Modified:
lld/trunk/ELF/OutputSections.cpp
Modified: lld/trunk/ELF/OutputSections.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/OutputSections.cpp?rev=315436&r1=315435&r2=315436&view=diff
==============================================================================
--- lld/trunk/ELF/OutputSections.cpp (original)
+++ lld/trunk/ELF/OutputSections.cpp Tue Oct 10 22:13:16 2017
@@ -393,7 +393,7 @@ template <class ELFT> void OutputSection
if (Filler)
fill(Buf, Sections.empty() ? Size : Sections[0]->OutSecOff, Filler);
- parallelForEachN(0, Sections.size(), [=](size_t I) {
+ parallelForEachN(0, Sections.size(), [&](size_t I) {
InputSection *IS = Sections[I];
IS->writeTo<ELFT>(Buf);
More information about the llvm-commits
mailing list