[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.
Repository:
rL LLVM
http://reviews.llvm.org/D16817
Files:
ELF/InputSection.cpp
ELF/Target.cpp
ELF/Target.h
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D16817.46684.patch
Type: text/x-patch
Size: 18600 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160202/467efe07/attachment.bin>
More information about the llvm-commits
mailing list