Remove unused parameter.

llvm-svn: 228476
This commit is contained in:
Rui Ueyama 2015-02-07 00:54:46 +00:00
parent a3271c1390
commit 669d9486f9
3 changed files with 3 additions and 3 deletions

View File

@ -42,7 +42,7 @@ public:
_target(nullptr), _targetSymbolIndex(idx), _offsetInAtom(off),
_addend(rela->r_addend) {}
ELFReference(const Elf_Rel *rel, uint64_t off, Reference::KindArch arch,
ELFReference(uint64_t off, Reference::KindArch arch,
Reference::KindValue relocType, uint32_t idx)
: Reference(Reference::KindNamespace::ELF, arch, relocType),
_target(nullptr), _targetSymbolIndex(idx), _offsetInAtom(off),

View File

@ -778,7 +778,7 @@ void ELFFile<ELFT>::createRelocationReferences(const Elf_Sym &symbol,
symValue + symContent.size() <= rel.r_offset)
continue;
_references.push_back(new (_readerStorage) ELFReference<ELFT>(
&rel, rel.r_offset - symValue, kindArch(),
rel.r_offset - symValue, kindArch(),
rel.getType(isMips64EL), rel.getSymbol(isMips64EL)));
int32_t addend = *(symContent.data() + rel.r_offset - symValue);
_references.back()->setAddend(addend);

View File

@ -164,7 +164,7 @@ private:
continue;
this->_references.push_back(new (this->_readerStorage) ELFReference<ELFT>(
&*rit, rit->r_offset - symbol.st_value, this->kindArch(),
rit->r_offset - symbol.st_value, this->kindArch(),
rit->getType(isMips64EL()), rit->getSymbol(isMips64EL())));
auto addend = getAddend(*rit, secContent);