[lld] r250347 - Remove silly getter use.

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 14 16:33:41 PDT 2015


Thanks. I happened to about to do the same thing.

On Wed, Oct 14, 2015 at 4:30 PM, Rafael Espindola via llvm-commits <
llvm-commits at lists.llvm.org> wrote:

> Author: rafael
> Date: Wed Oct 14 18:30:28 2015
> New Revision: 250347
>
> URL: http://llvm.org/viewvc/llvm-project?rev=250347&view=rev
> Log:
> Remove silly getter use.
>
> It was creating a local var with the same name as the member var.
>
> Modified:
>     lld/trunk/ELF/InputSection.cpp
>
> Modified: lld/trunk/ELF/InputSection.cpp
> URL:
> http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/InputSection.cpp?rev=250347&r1=250346&r2=250347&view=diff
>
> ==============================================================================
> --- lld/trunk/ELF/InputSection.cpp (original)
> +++ lld/trunk/ELF/InputSection.cpp Wed Oct 14 18:30:28 2015
> @@ -73,7 +73,6 @@ template <class ELFT> void InputSection<
>    ArrayRef<uint8_t> Data = *File->getObj().getSectionContents(Header);
>    memcpy(Buf + OutputSectionOff, Data.data(), Data.size());
>
> -  ObjectFile<ELFT> *File = getFile();
>    ELFFile<ELFT> &EObj = File->getObj();
>    uint8_t *Base = Buf + OutputSectionOff;
>    uintX_t BaseAddr = OutputSection->getVA() + OutputSectionOff;
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151014/9d354a4d/attachment.html>


More information about the llvm-commits mailing list