diff options
| author | Fangrui Song <maskray@google.com> | 2019-09-13 02:18:04 +0000 |
|---|---|---|
| committer | Fangrui Song <maskray@google.com> | 2019-09-13 02:18:04 +0000 |
| commit | 51ead00bf81cd92a868bdd1551a06ec5efdb563b (patch) | |
| tree | beda0e2603644c2ea598766f11e907c5d669faa2 | |
| parent | f457dd2bd437b7d65024194d1f3b4e6c6b0e07ec (diff) | |
| download | bcm5719-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.cpp | 1 |
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); } |

