summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2016-01-29 01:49:29 +0000
committerRui Ueyama <ruiu@google.com>2016-01-29 01:49:29 +0000
commit74b7df016f35ce9fce5cee213d6e8a5e75e02714 (patch)
tree76b94f55af026ae2bd1fc0080fa1aab707a9b679
parent67bb3f1d27a01eacf03d81dfd53c77e8cb49f748 (diff)
downloadbcm5719-llvm-74b7df016f35ce9fce5cee213d6e8a5e75e02714.tar.gz
bcm5719-llvm-74b7df016f35ce9fce5cee213d6e8a5e75e02714.zip
Remove unused variable.
llvm-svn: 259140
-rw-r--r--lld/ELF/Target.cpp3
-rw-r--r--lld/ELF/Target.h1
2 files changed, 0 insertions, 4 deletions
diff --git a/lld/ELF/Target.cpp b/lld/ELF/Target.cpp
index 483458bb6d3..bcb276ae2e1 100644
--- a/lld/ELF/Target.cpp
+++ b/lld/ELF/Target.cpp
@@ -304,7 +304,6 @@ void TargetInfo::writeGotPltHeaderEntries(uint8_t *Buf) const {}
X86TargetInfo::X86TargetInfo() {
CopyReloc = R_386_COPY;
- PCRelReloc = R_386_PC32;
GotReloc = R_386_GLOB_DAT;
PltReloc = R_386_JUMP_SLOT;
IRelativeReloc = R_386_IRELATIVE;
@@ -610,7 +609,6 @@ void X86TargetInfo::relocateTlsIeToLe(unsigned Type, uint8_t *Loc,
X86_64TargetInfo::X86_64TargetInfo() {
CopyReloc = R_X86_64_COPY;
- PCRelReloc = R_X86_64_PC32;
GotReloc = R_X86_64_GLOB_DAT;
PltReloc = R_X86_64_JUMP_SLOT;
RelativeReloc = R_X86_64_RELATIVE;
@@ -973,7 +971,6 @@ void PPCTargetInfo::relocateOne(uint8_t *Loc, uint8_t *BufEnd, uint32_t Type,
}
PPC64TargetInfo::PPC64TargetInfo() {
- PCRelReloc = R_PPC64_REL24;
GotReloc = R_PPC64_GLOB_DAT;
RelativeReloc = R_PPC64_RELATIVE;
PltEntrySize = 32;
diff --git a/lld/ELF/Target.h b/lld/ELF/Target.h
index 00359c08859..e74bab12cc6 100644
--- a/lld/ELF/Target.h
+++ b/lld/ELF/Target.h
@@ -96,7 +96,6 @@ protected:
uint64_t VAStart = 0x10000;
unsigned CopyReloc;
- unsigned PCRelReloc;
unsigned GotReloc;
unsigned PltReloc;
unsigned RelativeReloc;
OpenPOWER on IntegriCloud