[lld] r317316 - [ELF] - Removed unused variable. NFC.
George Rimar via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 3 04:51:58 PDT 2017
Author: grimar
Date: Fri Nov 3 04:51:58 2017
New Revision: 317316
URL: http://llvm.org/viewvc/llvm-project?rev=317316&view=rev
Log:
[ELF] - Removed unused variable. NFC.
Modified:
lld/trunk/ELF/Writer.cpp
Modified: lld/trunk/ELF/Writer.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Writer.cpp?rev=317316&r1=317315&r2=317316&view=diff
==============================================================================
--- lld/trunk/ELF/Writer.cpp (original)
+++ lld/trunk/ELF/Writer.cpp Fri Nov 3 04:51:58 2017
@@ -851,15 +851,12 @@ void Writer<ELFT>::forEachRelSec(std::fu
template <class ELFT> void Writer<ELFT>::setReservedSymbolSections() {
PhdrEntry *Last = nullptr;
PhdrEntry *LastRO = nullptr;
- PhdrEntry *LastRW = nullptr;
for (PhdrEntry *P : Phdrs) {
if (P->p_type != PT_LOAD)
continue;
Last = P;
- if (P->p_flags & PF_W)
- LastRW = P;
- else
+ if (!(P->p_flags & PF_W))
LastRO = P;
}
More information about the llvm-commits
mailing list