[lld] r259140 - Remove unused variable.

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 28 17:49:30 PST 2016


Author: ruiu
Date: Thu Jan 28 19:49:29 2016
New Revision: 259140

URL: http://llvm.org/viewvc/llvm-project?rev=259140&view=rev
Log:
Remove unused variable.

Modified:
    lld/trunk/ELF/Target.cpp
    lld/trunk/ELF/Target.h

Modified: lld/trunk/ELF/Target.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Target.cpp?rev=259140&r1=259139&r2=259140&view=diff
==============================================================================
--- lld/trunk/ELF/Target.cpp (original)
+++ lld/trunk/ELF/Target.cpp Thu Jan 28 19:49:29 2016
@@ -304,7 +304,6 @@ void TargetInfo::writeGotPltHeaderEntrie
 
 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(un
 
 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
 }
 
 PPC64TargetInfo::PPC64TargetInfo() {
-  PCRelReloc = R_PPC64_REL24;
   GotReloc = R_PPC64_GLOB_DAT;
   RelativeReloc = R_PPC64_RELATIVE;
   PltEntrySize = 32;

Modified: lld/trunk/ELF/Target.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Target.h?rev=259140&r1=259139&r2=259140&view=diff
==============================================================================
--- lld/trunk/ELF/Target.h (original)
+++ lld/trunk/ELF/Target.h Thu Jan 28 19:49:29 2016
@@ -96,7 +96,6 @@ protected:
   uint64_t VAStart = 0x10000;
 
   unsigned CopyReloc;
-  unsigned PCRelReloc;
   unsigned GotReloc;
   unsigned PltReloc;
   unsigned RelativeReloc;




More information about the llvm-commits mailing list