summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorge Rimar <grimar@accesssoftek.com>2018-07-05 14:27:36 +0000
committerGeorge Rimar <grimar@accesssoftek.com>2018-07-05 14:27:36 +0000
commit732a1e52b951e5a29e01de4ca8f598a50fd008dd (patch)
tree91f55ef72a48d568d5ee5729526b4ffd8026031e
parent9679eb6527fb920f60060036f21c325a3dd016f7 (diff)
downloadbcm5719-llvm-732a1e52b951e5a29e01de4ca8f598a50fd008dd.tar.gz
bcm5719-llvm-732a1e52b951e5a29e01de4ca8f598a50fd008dd.zip
[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
-rw-r--r--lld/ELF/LinkerScript.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/lld/ELF/LinkerScript.cpp b/lld/ELF/LinkerScript.cpp
index 817c6c69ace..19ac7236153 100644
--- a/lld/ELF/LinkerScript.cpp
+++ b/lld/ELF/LinkerScript.cpp
@@ -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);
OpenPOWER on IntegriCloud