Remove MIPS-specific code from computeAddend.
authorRui Ueyama <ruiu@google.com>
Sun, 26 Mar 2017 19:35:24 +0000 (19:35 +0000)
committerRui Ueyama <ruiu@google.com>
Sun, 26 Mar 2017 19:35:24 +0000 (19:35 +0000)
commita2f63f1471461fcd73340e30976f8d7769b00610
treeb57bd7bc5ccee1d4dd22467b7317780b4d536c00
parentbae9202b9a491cddda4f8d6ee9cceb40769369c9
Remove MIPS-specific code from computeAddend.

Previously, computeAddend had many parameters but most of them were
used only for MIPS. The MIPS ABI is too odd that I don't want to mix
it into the regular code path. Splitting the function into non-MIPS
and MIPS parts makes the regular code path easy to follow.

llvm-svn: 298817
lld/ELF/Relocations.cpp