[lld] r269979 - UseLazyBinding is always true in here, simplify.

Rafael Espindola via llvm-commits llvm-commits at lists.llvm.org
Wed May 18 13:44:25 PDT 2016


Author: rafael
Date: Wed May 18 15:44:24 2016
New Revision: 269979

URL: http://llvm.org/viewvc/llvm-project?rev=269979&view=rev
Log:
UseLazyBinding is always true in here, simplify.

Modified:
    lld/trunk/ELF/Target.cpp

Modified: lld/trunk/ELF/Target.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Target.cpp?rev=269979&r1=269978&r2=269979&view=diff
==============================================================================
--- lld/trunk/ELF/Target.cpp (original)
+++ lld/trunk/ELF/Target.cpp Wed May 18 15:44:24 2016
@@ -364,8 +364,7 @@ void X86TargetInfo::writePlt(uint8_t *Bu
 
   // jmp *foo at GOT(%ebx) or jmp *foo_in_GOT
   Buf[1] = Config->Pic ? 0xa3 : 0x25;
-  uint32_t Got = UseLazyBinding ? Out<ELF32LE>::GotPlt->getVA()
-                                : Out<ELF32LE>::Got->getVA();
+  uint32_t Got = Out<ELF32LE>::GotPlt->getVA();
   write32le(Buf + 2, Config->Shared ? GotEntryAddr - Got : GotEntryAddr);
   write32le(Buf + 7, RelOff);
   write32le(Buf + 12, -Index * PltEntrySize - PltZeroSize - 16);




More information about the llvm-commits mailing list