[ELF] - Remove dead code.

I do not think this code was ever alive,
because the following code says we can have OutputSection and
SymbolAssignment cases only. We already handle both of them.

https://github.com/llvm-mirror/lld/blob/master/ELF/ScriptParser.cpp#L502

FWIW, it is dead in the LLD code coverage reports I am running either.

llvm-svn: 335958
This commit is contained in:
George Rimar 2018-06-29 09:54:51 +00:00
parent aab8660e23
commit 0a22722e20
1 changed files with 0 additions and 3 deletions

View File

@ -174,9 +174,6 @@ void elf::writeMapFile() {
}
auto *OSec = dyn_cast<OutputSection>(Base);
if (!OSec)
continue;
writeHeader(OS, OSec->Addr, OSec->getLMA(), OSec->Size, OSec->Alignment);
OS << OSec->Name << '\n';