forked from OSchip/llvm-project
[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
This commit is contained in:
parent
f457dd2bd4
commit
51ead00bf8
|
@ -457,7 +457,6 @@ void LinkerScript::discard(ArrayRef<InputSection *> v) {
|
||||||
if (s == mainPart->hashTab)
|
if (s == mainPart->hashTab)
|
||||||
mainPart->hashTab = nullptr;
|
mainPart->hashTab = nullptr;
|
||||||
|
|
||||||
s->assigned = false;
|
|
||||||
s->markDead();
|
s->markDead();
|
||||||
discard(s->dependentSections);
|
discard(s->dependentSections);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue