Simplify. NFC.

llvm-svn: 259903
This commit is contained in:
Rui Ueyama 2016-02-05 19:13:18 +00:00
parent 03ff5c8616
commit 5a0b2f75db
1 changed files with 1 additions and 2 deletions

View File

@ -271,8 +271,7 @@ template <class ELFT> void RelocationSection<ELFT>::writeTo(uint8_t *Buf) {
}
template <class ELFT> unsigned RelocationSection<ELFT>::getRelocOffset() {
const unsigned EntrySize = IsRela ? sizeof(Elf_Rela) : sizeof(Elf_Rel);
return EntrySize * Relocs.size();
return this->Header.sh_entsize * Relocs.size();
}
template <class ELFT> void RelocationSection<ELFT>::finalize() {