[lld] r228476 - Remove unused parameter.
Rui Ueyama
ruiu at google.com
Fri Feb 6 16:54:46 PST 2015
Author: ruiu
Date: Fri Feb 6 18:54:46 2015
New Revision: 228476
URL: http://llvm.org/viewvc/llvm-project?rev=228476&view=rev
Log:
Remove unused parameter.
Modified:
lld/trunk/lib/ReaderWriter/ELF/Atoms.h
lld/trunk/lib/ReaderWriter/ELF/ELFFile.h
lld/trunk/lib/ReaderWriter/ELF/Mips/MipsELFFile.h
Modified: lld/trunk/lib/ReaderWriter/ELF/Atoms.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/ELF/Atoms.h?rev=228476&r1=228475&r2=228476&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/ELF/Atoms.h (original)
+++ lld/trunk/lib/ReaderWriter/ELF/Atoms.h Fri Feb 6 18:54:46 2015
@@ -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),
Modified: lld/trunk/lib/ReaderWriter/ELF/ELFFile.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/ELF/ELFFile.h?rev=228476&r1=228475&r2=228476&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/ELF/ELFFile.h (original)
+++ lld/trunk/lib/ReaderWriter/ELF/ELFFile.h Fri Feb 6 18:54:46 2015
@@ -778,7 +778,7 @@ void ELFFile<ELFT>::createRelocationRefe
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);
Modified: lld/trunk/lib/ReaderWriter/ELF/Mips/MipsELFFile.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/ELF/Mips/MipsELFFile.h?rev=228476&r1=228475&r2=228476&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/ELF/Mips/MipsELFFile.h (original)
+++ lld/trunk/lib/ReaderWriter/ELF/Mips/MipsELFFile.h Fri Feb 6 18:54:46 2015
@@ -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);
More information about the llvm-commits
mailing list