[ELF] Move isUsedInRegularObj assignment from ctor to call sites. NFC
authorFangrui Song <i@maskray.me>
Thu, 24 Feb 2022 05:32:50 +0000 (21:32 -0800)
committerFangrui Song <i@maskray.me>
Thu, 24 Feb 2022 05:32:50 +0000 (21:32 -0800)
commit8ca46bba23552e04a704daaac87212b554ed7c93
treea00b0e117b2141e071c6e63adc7fb46ee247d233
parent5b7ac107b1e22be10c745c184b073747c1c07759
[ELF] Move isUsedInRegularObj assignment from ctor to call sites. NFC

This removes the tricky
`isUsedInRegularObj(!file || file->kind() == InputFile::ObjKind)`
and the copy from `Symbol::mergeProperties`.
lld/ELF/Driver.cpp
lld/ELF/InputFiles.cpp
lld/ELF/LinkerScript.cpp
lld/ELF/SymbolTable.cpp
lld/ELF/Symbols.cpp
lld/ELF/Symbols.h
lld/ELF/Writer.cpp