[ELF] - Eliminate dead "if". NFC.

We call switchTo() from assignAddresses() for switching to Aether,
and from assignOffsets().

First calls assignOffsets() one by one for each output section.
(https://github.com/llvm-mirror/lld/blob/master/ELF/LinkerScript.cpp#L1045)

That I believe means the condition removed in this patch is dead.

llvm-svn: 336356
This commit is contained in:
George Rimar 2018-07-05 14:27:36 +00:00
parent 9679eb6527
commit 732a1e52b9
1 changed files with 0 additions and 2 deletions

View File

@ -710,8 +710,6 @@ void LinkerScript::output(InputSection *S) {
}
void LinkerScript::switchTo(OutputSection *Sec) {
if (Ctx->OutSec == Sec)
return;
Ctx->OutSec = Sec;
uint64_t Before = advance(0, 1);