[lld] r300294 - Remove useless local variable.
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 13 18:35:04 PDT 2017
Author: ruiu
Date: Thu Apr 13 20:35:04 2017
New Revision: 300294
URL: http://llvm.org/viewvc/llvm-project?rev=300294&view=rev
Log:
Remove useless local variable.
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=300294&r1=300293&r2=300294&view=diff
==============================================================================
--- lld/trunk/ELF/InputSection.cpp (original)
+++ lld/trunk/ELF/InputSection.cpp Thu Apr 13 20:35:04 2017
@@ -661,11 +661,9 @@ template <class ELFT> void InputSection:
return;
}
- // Copy section contents from source object file to output file.
- ArrayRef<uint8_t> Data = this->Data;
+ // Copy section contents from source object file to output file
+ // and then apply relocations.
memcpy(Buf + OutSecOff, Data.data(), Data.size());
-
- // Iterate over all relocation sections that apply to this section.
uint8_t *BufEnd = Buf + OutSecOff + Data.size();
this->relocate<ELFT>(Buf, BufEnd);
}
More information about the llvm-commits
mailing list