[Mips] Move RelocationPass class member function definitions out of the
class.

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@204242 91177308-0d34-0410-b5e6-96231b3b80d8
[Mips] Move AHL addends calculation to the RelocationPass class.

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@204243 91177308-0d34-0410-b5e6-96231b3b80d8
[Mips] Add 'const' qualifier to the function.

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@204244 91177308-0d34-0410-b5e6-96231b3b80d8
[Mips] Factor out the code creates GOT entry atoms into the two
functions. The first one is for local GOT entries. The second one is for
global GOT entries.

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@204245 91177308-0d34-0410-b5e6-96231b3b80d8
[Mips] Handle R_MIPS_GOT16 relocation for external and local symbols in
a uniform way.

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@204246 91177308-0d34-0410-b5e6-96231b3b80d8
[Mips] Fix handling of R_MIPS_GOT16 relocation and building local part
of GOT.
 * Read addend for R_MIPS_GOT16 relocation.
 * Put only high 16 bits of symbol + addend into GOT entries for
   locally visible symbols.

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@204247 91177308-0d34-0410-b5e6-96231b3b80d8