[lld-macho] Associate each Symbol with an InputFile
authorJez Ng <jezng@fb.com>
Wed, 3 Feb 2021 18:31:40 +0000 (13:31 -0500)
committerJez Ng <jezng@fb.com>
Wed, 3 Feb 2021 18:43:47 +0000 (13:43 -0500)
commit163dcd851309d0bfbbbe0b7810335f30d88ee879
treee03a2cc8e8c8184a47a8cadea31d939e9f1be91e
parentd886da042c65e7bac3dc77215abf2f29b6a87de6
[lld-macho] Associate each Symbol with an InputFile

This makes our error messages more informative. But the bigger motivation is for
LTO symbol resolution, which will be in an upcoming diff. The changes in this
one are largely mechanical.

Reviewed By: #lld-macho, smeenai

Differential Revision: https://reviews.llvm.org/D94316
lld/MachO/Driver.cpp
lld/MachO/ExportTrie.cpp
lld/MachO/InputFiles.cpp
lld/MachO/SymbolTable.cpp
lld/MachO/SymbolTable.h
lld/MachO/Symbols.cpp
lld/MachO/Symbols.h
lld/MachO/SyntheticSections.cpp
lld/MachO/Writer.cpp
lld/test/MachO/invalid/abs-duplicate.s
lld/test/MachO/invalid/duplicate-symbol.s