forked from OSchip/llvm-project
[Mips] Rename the function s/readAddend/getAddend/
No functional changes. llvm-svn: 224814
This commit is contained in:
parent
375f07a919
commit
eab5dc815a
|
@ -167,13 +167,13 @@ private:
|
||||||
&*rit, rit->r_offset - symbol.st_value, this->kindArch(),
|
&*rit, rit->r_offset - symbol.st_value, this->kindArch(),
|
||||||
rit->getType(isMips64EL()), rit->getSymbol(isMips64EL())));
|
rit->getType(isMips64EL()), rit->getSymbol(isMips64EL())));
|
||||||
|
|
||||||
auto addend = readAddend(*rit, secContent);
|
auto addend = getAddend(*rit, secContent);
|
||||||
auto pairRelType = getPairRelocation(*rit);
|
auto pairRelType = getPairRelocation(*rit);
|
||||||
if (pairRelType != llvm::ELF::R_MIPS_NONE) {
|
if (pairRelType != llvm::ELF::R_MIPS_NONE) {
|
||||||
addend <<= 16;
|
addend <<= 16;
|
||||||
auto mit = findMatchingRelocation(pairRelType, rit, eit);
|
auto mit = findMatchingRelocation(pairRelType, rit, eit);
|
||||||
if (mit != eit)
|
if (mit != eit)
|
||||||
addend += int16_t(readAddend(*mit, secContent));
|
addend += int16_t(getAddend(*mit, secContent));
|
||||||
else
|
else
|
||||||
// FIXME (simon): Show detailed warning.
|
// FIXME (simon): Show detailed warning.
|
||||||
llvm::errs() << "lld warning: cannot matching LO16 relocation\n";
|
llvm::errs() << "lld warning: cannot matching LO16 relocation\n";
|
||||||
|
@ -182,7 +182,7 @@ private:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Reference::Addend readAddend(const Elf_Rel &ri,
|
Reference::Addend getAddend(const Elf_Rel &ri,
|
||||||
const ArrayRef<uint8_t> content) const {
|
const ArrayRef<uint8_t> content) const {
|
||||||
using namespace llvm::support;
|
using namespace llvm::support;
|
||||||
const uint8_t *ap = content.data() + ri.r_offset;
|
const uint8_t *ap = content.data() + ri.r_offset;
|
||||||
|
|
Loading…
Reference in New Issue