Move code for symbol resolution from SymbolTable.cpp to Symbols.cpp.
authorRui Ueyama <ruiu@google.com>
Thu, 23 May 2019 09:58:08 +0000 (09:58 +0000)
committerRui Ueyama <ruiu@google.com>
Thu, 23 May 2019 09:58:08 +0000 (09:58 +0000)
commit7f7d2b2e62ebd89d0ab1e2e066689cdfb2a94899
tree587bebffbccdb4e26c6842f45639e938a9f7d5cf
parent42548403133d9b9a22f0f3588eded31f050c1664
Move code for symbol resolution from SymbolTable.cpp to Symbols.cpp.

My recent commits separated symbol resolution from the symbol table,
so the functions to resolve symbols are now in a somewhat wrong file.
This patch moves it to Symbols.cpp.

The functions are now member functions of the symbol.

This is code move change. I modified function names so that they are
appropriate as member functions, though. No functionality change
intended.

Differential Revision: https://reviews.llvm.org/D62290

llvm-svn: 361474
lld/ELF/Driver.cpp
lld/ELF/InputFiles.cpp
lld/ELF/LinkerScript.cpp
lld/ELF/SymbolTable.cpp
lld/ELF/SymbolTable.h
lld/ELF/Symbols.cpp
lld/ELF/Symbols.h