[ELF] Delete redundant isLive() check. NFC
authorFangrui Song <maskray@google.com>
Mon, 16 Dec 2019 05:40:11 +0000 (21:40 -0800)
committerFangrui Song <maskray@google.com>
Mon, 16 Dec 2019 05:59:55 +0000 (21:59 -0800)
lld/ELF/LinkerScript.cpp

index a1561d2..57e0e1e 100644 (file)
@@ -954,8 +954,6 @@ void LinkerScript::adjustSectionsBeforeSorting() {
     if (isEmpty && isDiscardable(*sec)) {
       sec->markDead();
       cmd = nullptr;
-    } else if (!sec->isLive()) {
-      sec->markLive();
     }
   }