[lld] r248747 - Delete dead code.

Rafael Espindola via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 28 15:07:52 PDT 2015


Author: rafael
Date: Mon Sep 28 17:07:52 2015
New Revision: 248747

URL: http://llvm.org/viewvc/llvm-project?rev=248747&view=rev
Log:
Delete dead code.

Modified:
    lld/trunk/ELF/OutputSections.cpp

Modified: lld/trunk/ELF/OutputSections.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/OutputSections.cpp?rev=248747&r1=248746&r2=248747&view=diff
==============================================================================
--- lld/trunk/ELF/OutputSections.cpp (original)
+++ lld/trunk/ELF/OutputSections.cpp Mon Sep 28 17:07:52 2015
@@ -58,7 +58,6 @@ PltSection<ELFT>::PltSection(const GotSe
 
 template <class ELFT> void PltSection<ELFT>::writeTo(uint8_t *Buf) {
   uintptr_t Start = reinterpret_cast<uintptr_t>(Buf);
-  ArrayRef<uint8_t> Jmp = {0xff, 0x25}; // jmpq *val(%rip)
   for (const SymbolBody *E : Entries) {
     uint64_t GotEntryAddr = GotSec.getEntryAddr(*E);
     uintptr_t InstPos = reinterpret_cast<uintptr_t>(Buf);




More information about the llvm-commits mailing list