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:
3c9bf77
)
[ELF] Delete redundant isLive() check. NFC
author
Fangrui Song
<maskray@google.com>
Mon, 16 Dec 2019 05:40:11 +0000
(21:40 -0800)
committer
Fangrui Song
<maskray@google.com>
Mon, 16 Dec 2019 05:59:55 +0000
(21:59 -0800)
lld/ELF/LinkerScript.cpp
patch
|
blob
|
history
diff --git
a/lld/ELF/LinkerScript.cpp
b/lld/ELF/LinkerScript.cpp
index
a1561d2
..
57e0e1e
100644
(file)
--- a/
lld/ELF/LinkerScript.cpp
+++ b/
lld/ELF/LinkerScript.cpp
@@
-954,8
+954,6
@@
void LinkerScript::adjustSectionsBeforeSorting() {
if (isEmpty && isDiscardable(*sec)) {
sec->markDead();
cmd = nullptr;
- } else if (!sec->isLive()) {
- sec->markLive();
}
}