[Mips] Refactoring of relocation handling functions
authorSimon Atanasyan <simon@atanasyan.com>
Mon, 9 Mar 2015 10:53:32 +0000 (10:53 +0000)
committerSimon Atanasyan <simon@atanasyan.com>
Mon, 9 Mar 2015 10:53:32 +0000 (10:53 +0000)
commitcc0ed289b409031eea526f1dd689ad21c3a4c17b
treec4c39b2ae5e22c6e7be0a2096bc96ff3b9a11f95
parente604e8f9700e80308f230f3313a544441efcd03c
[Mips] Refactoring of relocation handling functions

1. Move relocation addendum reading code to the MipsRelocationHandler
class to reduce code duplication.
2. Factor out the relocations calculation code into the separate
function to be ready to handle MIPS N64 ABI relocation chains.

No functional changes.

llvm-svn: 231641
lld/lib/ReaderWriter/ELF/Mips/MipsELFFile.h
lld/lib/ReaderWriter/ELF/Mips/MipsLinkingContext.h
lld/lib/ReaderWriter/ELF/Mips/MipsRelocationHandler.cpp
lld/lib/ReaderWriter/ELF/Mips/MipsRelocationHandler.h