Move getLocation from Relocations.cpp to InputSection.cpp.
authorRui Ueyama <ruiu@google.com>
Fri, 25 Nov 2016 18:51:53 +0000 (18:51 +0000)
committerRui Ueyama <ruiu@google.com>
Fri, 25 Nov 2016 18:51:53 +0000 (18:51 +0000)
commitda06bfb7945afd242276f409368c52da683f5e9b
tree0c06ab103d8ac30f65b2303ea7930dfc8ce277a9
parent79c05871a28872a01e5e75394c5c6382d5c434a5
Move getLocation from Relocations.cpp to InputSection.cpp.

The function was used only within Relocations.cpp, but now we are
using it in many places, so this patch moves it to a file that fits
to the functionality.

llvm-svn: 287943
lld/ELF/EhFrame.cpp
lld/ELF/InputSection.cpp
lld/ELF/InputSection.h
lld/ELF/Relocations.cpp
lld/ELF/Relocations.h
lld/ELF/SymbolTable.cpp