[lld] r275153 - Remove unused parameters.
Rafael EspĂndola via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 12 10:12:13 PDT 2016
Thanks!
On Monday, 11 July 2016, Rui Ueyama via llvm-commits <
llvm-commits at lists.llvm.org> wrote:
> Author: ruiu
> Date: Mon Jul 11 22:49:41 2016
> New Revision: 275153
>
> URL: http://llvm.org/viewvc/llvm-project?rev=275153&view=rev
> Log:
> Remove unused parameters.
>
> Modified:
> lld/trunk/ELF/InputSection.cpp
>
> Modified: lld/trunk/ELF/InputSection.cpp
> URL:
> http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/InputSection.cpp?rev=275153&r1=275152&r2=275153&view=diff
>
> ==============================================================================
> --- lld/trunk/ELF/InputSection.cpp (original)
> +++ lld/trunk/ELF/InputSection.cpp Mon Jul 11 22:49:41 2016
> @@ -173,10 +173,9 @@ static uint64_t getAArch64Page(uint64_t
> }
>
> template <class ELFT>
> -static typename ELFT::uint
> -getSymVA(uint32_t Type, typename ELFT::uint A, typename ELFT::uint P,
> - const SymbolBody &Body, uint8_t *BufLoc,
> - const elf::ObjectFile<ELFT> &File, RelExpr Expr) {
> +static typename ELFT::uint getSymVA(uint32_t Type, typename ELFT::uint A,
> + typename ELFT::uint P,
> + const SymbolBody &Body, RelExpr Expr)
> {
> typedef typename ELFT::uint uintX_t;
>
> switch (Expr) {
> @@ -314,8 +313,8 @@ void InputSection<ELFT>::relocateNonAllo
> }
>
> uintX_t AddrLoc = this->OutSec->getVA() + Offset;
> - uint64_t SymVA = SignExtend64<Bits>(getSymVA<ELFT>(
> - Type, Addend, AddrLoc, Sym, BufLoc, *this->File, R_ABS));
> + uint64_t SymVA =
> + SignExtend64<Bits>(getSymVA<ELFT>(Type, Addend, AddrLoc, Sym,
> R_ABS));
> Target->relocateOne(BufLoc, Type, SymVA);
> }
> }
> @@ -345,8 +344,8 @@ void InputSectionBase<ELFT>::relocate(ui
>
> uintX_t AddrLoc = OutSec->getVA() + Offset;
> RelExpr Expr = Rel.Expr;
> - uint64_t SymVA = SignExtend64<Bits>(
> - getSymVA<ELFT>(Type, A, AddrLoc, *Rel.Sym, BufLoc, *File, Expr));
> + uint64_t SymVA =
> + SignExtend64<Bits>(getSymVA<ELFT>(Type, A, AddrLoc, *Rel.Sym,
> Expr));
>
> switch (Expr) {
> case R_RELAX_GOT_PC:
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at lists.llvm.org <javascript:;>
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160712/418084de/attachment.html>
More information about the llvm-commits
mailing list