[ELF] Remove SharedSymbol::getFile. NFC
authorFangrui Song <i@maskray.me>
Thu, 24 Feb 2022 01:57:52 +0000 (17:57 -0800)
committerFangrui Song <i@maskray.me>
Thu, 24 Feb 2022 01:57:52 +0000 (17:57 -0800)
commit47d18be58b61f80f9be0b84c2ac00f0741608a83
treeb530f02ec729961d7c4a2dabcae655db2904efcf
parent7e3606f43c63f9622f176a786424c3c92c15f5c0
[ELF] Remove SharedSymbol::getFile. NFC

Symbol.h depends on InputFiles.h. This change moves us toward dropping the
weird dependency.

The call sites will become slightly uglier (`cast<SharedFile>(s->file)`), but
the compromise is acceptable.
lld/ELF/Driver.cpp
lld/ELF/MarkLive.cpp
lld/ELF/Relocations.cpp
lld/ELF/Symbols.h