[PowerPC] Support TLS variables in debug info
authorUlrich Weigand <ulrich.weigand@de.ibm.com>
Tue, 2 Jul 2013 18:47:35 +0000 (18:47 +0000)
committerUlrich Weigand <ulrich.weigand@de.ibm.com>
Tue, 2 Jul 2013 18:47:35 +0000 (18:47 +0000)
commit0f0398246c1db77b9e113d449c29ec54b7e19cb4
tree7d9abd60fce9d1775ae95dc3bdc2442e4a2dbef0
parent2b6fc8d613c50dda7f60961a0c5a19b690b450b9
[PowerPC] Support TLS variables in debug info

This adds an implementation of getDebugThreadLocalSymbol for
(64-bit) PowerPC.  This needs to return a generic MCExpr
since on ppc64, we need to add a bias of 0x8000 to the
value returned by the R_PPC64_DTPREL64 relocation.

llvm-svn: 185461
llvm/lib/Target/PowerPC/PPCTargetObjectFile.cpp
llvm/lib/Target/PowerPC/PPCTargetObjectFile.h
llvm/test/DebugInfo/PowerPC/tls-fission.ll [new file with mode: 0644]
llvm/test/DebugInfo/PowerPC/tls.ll