[lld] f036f1c - [ELF] Delete redundant isLive() check. NFC
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Sun Dec 15 22:00:04 PST 2019
Author: Fangrui Song
Date: 2019-12-15T21:59:55-08:00
New Revision: f036f1cc85deddff852705e6b44d31d1d0d47773
URL: https://github.com/llvm/llvm-project/commit/f036f1cc85deddff852705e6b44d31d1d0d47773
DIFF: https://github.com/llvm/llvm-project/commit/f036f1cc85deddff852705e6b44d31d1d0d47773.diff
LOG: [ELF] Delete redundant isLive() check. NFC
Added:
Modified:
lld/ELF/LinkerScript.cpp
Removed:
################################################################################
diff --git a/lld/ELF/LinkerScript.cpp b/lld/ELF/LinkerScript.cpp
index a1561d2d4159..57e0e1e8acbf 100644
--- 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();
}
}
More information about the llvm-commits
mailing list