summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFangrui Song <maskray@google.com>2019-09-13 02:18:04 +0000
committerFangrui Song <maskray@google.com>2019-09-13 02:18:04 +0000
commit51ead00bf81cd92a868bdd1551a06ec5efdb563b (patch)
treebeda0e2603644c2ea598766f11e907c5d669faa2
parentf457dd2bd437b7d65024194d1f3b4e6c6b0e07ec (diff)
downloadbcm5719-llvm-51ead00bf81cd92a868bdd1551a06ec5efdb563b.tar.gz
bcm5719-llvm-51ead00bf81cd92a868bdd1551a06ec5efdb563b.zip
[ELF] Delete a redundant assignment to SectionBase::assigned. NFC
LinkerScript::discard marks a section dead. It is unnecessary to set the `assigned` bit. llvm-svn: 371804
-rw-r--r--lld/ELF/LinkerScript.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/lld/ELF/LinkerScript.cpp b/lld/ELF/LinkerScript.cpp
index dbf705dc7f0..8d8f3b596fa 100644
--- a/lld/ELF/LinkerScript.cpp
+++ b/lld/ELF/LinkerScript.cpp
@@ -457,7 +457,6 @@ void LinkerScript::discard(ArrayRef<InputSection *> v) {
if (s == mainPart->hashTab)
mainPart->hashTab = nullptr;
- s->assigned = false;
s->markDead();
discard(s->dependentSections);
}
OpenPOWER on IntegriCloud