[lld] r256448 - Simplify. NFC.

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 13 12:25:52 PST 2016


On Wed, Jan 13, 2016 at 8:01 AM, Rafael EspĂ­ndola <
rafael.espindola at gmail.com> wrote:

> On 26 December 2015 at 05:34, Rui Ueyama via llvm-commits
> <llvm-commits at lists.llvm.org> wrote:
> > Author: ruiu
> > Date: Sat Dec 26 04:34:33 2015
> > New Revision: 256448
> >
> > URL: http://llvm.org/viewvc/llvm-project?rev=256448&view=rev
> > Log:
> > Simplify. NFC.
> >
> > Modified:
> >     lld/trunk/ELF/Writer.cpp
> >
> > Modified: lld/trunk/ELF/Writer.cpp
> > URL:
> http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Writer.cpp?rev=256448&r1=256447&r2=256448&view=diff
> >
> ==============================================================================
> > --- lld/trunk/ELF/Writer.cpp (original)
> > +++ lld/trunk/ELF/Writer.cpp Sat Dec 26 04:34:33 2015
> > @@ -850,23 +850,25 @@ template <class ELFT> void Writer<ELFT>:
> >
> >  // This function add Out<ELFT>::* sections to OutputSections.
> >  template <class ELFT> void Writer<ELFT>::addPredefinedSections() {
> > +  auto Add = [&](OutputSectionBase<ELFT> *C) {
>
>
> Very small nit, using C for sections is a leftover from when ELF had
> Chunks.
>

True. We should use a different name when we update existing code.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160113/221a41e5/attachment.html>


More information about the llvm-commits mailing list