[PATCH] D16817: [ELF][MIPS] Pass InputFile and SymbolBody to the Target::relocateOne method
Simon Atanasyan via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 2 11:33:20 PST 2016
atanasyan created this revision.
atanasyan added reviewers: rafael, ruiu.
atanasyan added a subscriber: llvm-commits.
atanasyan set the repository for this revision to rL LLVM.
atanasyan added a project: lld.
The patch adds two new arguments to the Target::relocateOne routine and passes pointers to InputFile and SymbolBody. For all targets except MIPS at least for now it just increases amount of useless relocateOne's arguments. For MIPS it allows to cleanup InputSectionBase::relocate code and remove almost all `if (EMachine == EM_MIPS)` statements from it.
I have an idea how to remove the last `if (EMachine == EM_MIPS)` statement from the InputSectionBase::relocate, but it is for a separate patch.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 18600 bytes
Desc: not available
More information about the llvm-commits