[lld] r222468 - [Mips] Remove unused function argument

Simon Atanasyan simon at atanasyan.com
Thu Nov 20 14:29:43 PST 2014


Author: atanasyan
Date: Thu Nov 20 16:29:43 2014
New Revision: 222468

URL: http://llvm.org/viewvc/llvm-project?rev=222468&view=rev
Log:
[Mips] Remove unused function argument

No functional changes.

Modified:
    lld/trunk/lib/ReaderWriter/ELF/Mips/MipsRelocationHandler.cpp

Modified: lld/trunk/lib/ReaderWriter/ELF/Mips/MipsRelocationHandler.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/ELF/Mips/MipsRelocationHandler.cpp?rev=222468&r1=222467&r2=222468&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/ELF/Mips/MipsRelocationHandler.cpp (original)
+++ lld/trunk/lib/ReaderWriter/ELF/Mips/MipsRelocationHandler.cpp Thu Nov 20 16:29:43 2014
@@ -29,7 +29,7 @@ template <size_t BITS, class T> inline T
 
 /// \brief R_MIPS_32
 /// local/external: word32 S + A (truncate)
-static void reloc32(uint32_t &ins, uint64_t P, uint64_t S, int64_t A) {
+static void reloc32(uint32_t &ins, uint64_t S, int64_t A) {
   applyReloc(ins, S + A, 0xffffffff);
 }
 
@@ -140,7 +140,7 @@ std::error_code MipsTargetRelocationHand
   case R_MIPS_NONE:
     break;
   case R_MIPS_32:
-    reloc32(ins, relocVAddress, targetVAddress, ref.addend());
+    reloc32(ins, targetVAddress, ref.addend());
     break;
   case R_MIPS_26:
     reloc26loc(ins, relocVAddress, targetVAddress, ref.addend());





More information about the llvm-commits mailing list