mirror of
https://github.com/intel/llvm.git
synced 2026-01-26 21:53:12 +08:00
[ELF] - Inlined template argument variable. NFC.
llvm-svn: 282851
This commit is contained in:
@@ -315,7 +315,6 @@ static typename ELFT::uint getSymVA(uint32_t Type, typename ELFT::uint A,
|
||||
template <class ELFT>
|
||||
template <class RelTy>
|
||||
void InputSection<ELFT>::relocateNonAlloc(uint8_t *Buf, ArrayRef<RelTy> 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<ELFT>::relocateNonAlloc(uint8_t *Buf, ArrayRef<RelTy> Rels) {
|
||||
}
|
||||
|
||||
uintX_t AddrLoc = this->OutSec->getVA() + Offset;
|
||||
uint64_t SymVA =
|
||||
SignExtend64<Bits>(getSymVA<ELFT>(Type, Addend, AddrLoc, Sym, R_ABS));
|
||||
uint64_t SymVA = SignExtend64<sizeof(uintX_t) * 8>(
|
||||
getSymVA<ELFT>(Type, Addend, AddrLoc, Sym, R_ABS));
|
||||
Target->relocateOne(BufLoc, Type, SymVA);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user