[PATCH] D32758: Remove isTlsLocalDynamicRel and isTlsInitialExecRel
Rafael Ávila de Espíndola via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue May 2 12:48:18 PDT 2017
rafael created this revision.
This feels a bit hackish, but I think it is still an improvement.
The way a tls address is computed in the various architectures is not that different. For example, for local dynamic we need the base of the tls (R_TLSLD or R_TLSLD_PC), and the offset of that particular symbol (R_ABS).
Given the similarity, we can just use the expressions instead of having two additional target hooks.
https://reviews.llvm.org/D32758
Files:
ELF/Relocations.cpp
ELF/Target.cpp
ELF/Target.h
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D32758.97486.patch
Type: text/x-patch
Size: 4563 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170502/a2595a5b/attachment.bin>
More information about the llvm-commits
mailing list