diff options
Diffstat (limited to 'lld/ELF/Writer.cpp')
-rw-r--r-- | lld/ELF/Writer.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/lld/ELF/Writer.cpp b/lld/ELF/Writer.cpp index a1c534c912c..ade8ebaf3c0 100644 --- a/lld/ELF/Writer.cpp +++ b/lld/ELF/Writer.cpp @@ -1382,11 +1382,6 @@ static void removeUnusedSyntheticSections() { if (auto *ISD = dyn_cast<InputSectionDescription>(B)) llvm::erase_if(ISD->Sections, [=](InputSection *IS) { return IS == SS; }); - - // If there are no other alive sections or commands left in the output - // section description, we remove it from the output. - if (getInputSections(OS).empty() && OS->isAllSectionDescription()) - OS->Live = false; } } |