[lld] r250347 - Remove silly getter use.
Rafael Espindola via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 14 16:30:29 PDT 2015
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;
More information about the llvm-commits
mailing list