forked from OSchip/llvm-project
[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:
parent
aab8660e23
commit
0a22722e20
|
@ -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';
|
||||
|
||||
|
|
Loading…
Reference in New Issue