[lld] r275153 - Remove unused parameters.

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 11 20:49:41 PDT 2016


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:




More information about the llvm-commits mailing list