[ELF] Remove unnecessary assignment to `used` in replaceWithDefined

`Symbol::used` is used by Undefined and SharedSymbol to record if a
.symtab entry is needed. It is of no use for Defined.

llvm-svn: 368533
This commit is contained in:
Fangrui Song 2019-08-11 13:32:46 +00:00
parent b1a62d168f
commit 38c5788548
1 changed files with 0 additions and 1 deletions

View File

@ -513,7 +513,6 @@ static void replaceWithDefined(Symbol &sym, SectionBase *sec, uint64_t value,
sym.isPreemptible = true;
sym.exportDynamic = true;
sym.isUsedInRegularObj = true;
sym.used = true;
}
// Reserve space in .bss or .bss.rel.ro for copy relocation.