From f036f1cc85deddff852705e6b44d31d1d0d47773 Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Sun, 15 Dec 2019 21:40:11 -0800 Subject: [PATCH] [ELF] Delete redundant isLive() check. NFC --- lld/ELF/LinkerScript.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/lld/ELF/LinkerScript.cpp b/lld/ELF/LinkerScript.cpp index a1561d2..57e0e1e 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(); } } -- 2.7.4