From f50bafc708d87fe526c8dd711e975eccfaaae774 Mon Sep 17 00:00:00 2001 From: George Rimar Date: Fri, 30 Sep 2016 13:46:34 +0000 Subject: [ELF] - Inlined template argument variable. NFC. llvm-svn: 282851 --- lld/ELF/InputSection.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'lld/ELF/InputSection.cpp') diff --git a/lld/ELF/InputSection.cpp b/lld/ELF/InputSection.cpp index 6e73f6ff1d0..789b4e44968 100644 --- a/lld/ELF/InputSection.cpp +++ b/lld/ELF/InputSection.cpp @@ -315,7 +315,6 @@ static typename ELFT::uint getSymVA(uint32_t Type, typename ELFT::uint A, template template void InputSection::relocateNonAlloc(uint8_t *Buf, ArrayRef Rels) { - const unsigned Bits = sizeof(uintX_t) * 8; for (const RelTy &Rel : Rels) { uint32_t Type = Rel.getType(Config->Mips64EL); uintX_t Offset = this->getOffset(Rel.r_offset); @@ -331,8 +330,8 @@ void InputSection::relocateNonAlloc(uint8_t *Buf, ArrayRef Rels) { } uintX_t AddrLoc = this->OutSec->getVA() + Offset; - uint64_t SymVA = - SignExtend64(getSymVA(Type, Addend, AddrLoc, Sym, R_ABS)); + uint64_t SymVA = SignExtend64( + getSymVA(Type, Addend, AddrLoc, Sym, R_ABS)); Target->relocateOne(BufLoc, Type, SymVA); } } -- cgit v1.2.3