projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ae1f013
)
[ELF] - Removed unused variable. NFC.
author
George Rimar
<grimar@accesssoftek.com>
Fri, 3 Nov 2017 11:51:58 +0000
(11:51 +0000)
committer
George Rimar
<grimar@accesssoftek.com>
Fri, 3 Nov 2017 11:51:58 +0000
(11:51 +0000)
llvm-svn: 317316
lld/ELF/Writer.cpp
patch
|
blob
|
history
diff --git
a/lld/ELF/Writer.cpp
b/lld/ELF/Writer.cpp
index
944c683
..
cd5dff7
100644
(file)
--- a/
lld/ELF/Writer.cpp
+++ b/
lld/ELF/Writer.cpp
@@
-851,15
+851,12
@@
void Writer<ELFT>::forEachRelSec(std::function<void(InputSectionBase &)> Fn) {
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;
}