[PATCH] D31748: [LLD][ELF] Split handleNoRelaxTlsRelocation into ARM and Mips specific impls [NFC]

Peter Smith via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 6 03:25:13 PDT 2017


peter.smith created this revision.
Herald added subscribers: rengolin, aemerson.

The handleNoRelaxTlsRelocation handled both ARM and Mips as at a high-level the actions of what to do when encountering a local dynamic or global dynamic TLS relocation are the same. However due to Mips using a custom GOT the differences of the implementation are enough that the function became difficult to understand.

      

This change replaces handleNotRelaxTlsRelocation into handleARMTlsRelocation() and handleMipsTlsRelocation() so that the ARM and Mips specific code is isolated.

This refactoring change has been split out of https://reviews.llvm.org/D31672


https://reviews.llvm.org/D31748

Files:
  ELF/Relocations.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D31748.94340.patch
Type: text/x-patch
Size: 6288 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170406/9f425567/attachment.bin>


More information about the llvm-commits mailing list