summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2016-07-12 03:49:41 +0000
committerRui Ueyama <ruiu@google.com>2016-07-12 03:49:41 +0000
commitec1b80fd11d121ce6d87b883e4581eb82dc47169 (patch)
tree18cdad2ade0edf949ae030f5758e742d1b37a81f
parentdbdfe62c3ff0e1fc39954edde304e731082d8a1a (diff)
downloadbcm5719-llvm-ec1b80fd11d121ce6d87b883e4581eb82dc47169.tar.gz
bcm5719-llvm-ec1b80fd11d121ce6d87b883e4581eb82dc47169.zip
Remove unused parameters.
llvm-svn: 275153
-rw-r--r--lld/ELF/InputSection.cpp15
1 files changed, 7 insertions, 8 deletions
diff --git a/lld/ELF/InputSection.cpp b/lld/ELF/InputSection.cpp
index 97c273b42c4..3604b4edc71 100644
--- a/lld/ELF/InputSection.cpp
+++ b/lld/ELF/InputSection.cpp
@@ -173,10 +173,9 @@ static uint64_t getAArch64Page(uint64_t Expr) {
}
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>::relocateNonAlloc(uint8_t *Buf, ArrayRef<RelTy> Rels) {
}
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(uint8_t *Buf, uint8_t *BufEnd) {
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:
OpenPOWER on IntegriCloud