[lld] r263227 - [ELF] - Early continue in InputSectionBase<ELFT>::relocate(). NFC.
George Rimar via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 11 04:57:52 PST 2016
Author: grimar
Date: Fri Mar 11 06:57:52 2016
New Revision: 263227
URL: http://llvm.org/viewvc/llvm-project?rev=263227&view=rev
Log:
[ELF] - Early continue in InputSectionBase<ELFT>::relocate(). NFC.
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=263227&r1=263226&r2=263227&view=diff
==============================================================================
--- lld/trunk/ELF/InputSection.cpp (original)
+++ lld/trunk/ELF/InputSection.cpp Fri Mar 11 06:57:52 2016
@@ -179,13 +179,13 @@ void InputSectionBase<ELFT>::relocate(ui
size_t Num = Rels.end() - Rels.begin();
for (size_t I = 0; I < Num; ++I) {
const RelType &RI = *(Rels.begin() + I);
- uint32_t SymIndex = RI.getSymbol(Config->Mips64EL);
- uint32_t Type = RI.getType(Config->Mips64EL);
uintX_t Offset = getOffset(RI.r_offset);
- uintX_t A = getAddend<ELFT>(RI);
if (Offset == (uintX_t)-1)
continue;
+ uintX_t A = getAddend<ELFT>(RI);
+ uint32_t SymIndex = RI.getSymbol(Config->Mips64EL);
+ uint32_t Type = RI.getType(Config->Mips64EL);
uint8_t *BufLoc = Buf + Offset;
uintX_t AddrLoc = OutSec->getVA() + Offset;
auto NextRelocs = llvm::make_range(&RI, Rels.end());
More information about the llvm-commits
mailing list