diff options
author | Ulrich Weigand <ulrich.weigand@de.ibm.com> | 2013-07-02 18:47:35 +0000 |
---|---|---|
committer | Ulrich Weigand <ulrich.weigand@de.ibm.com> | 2013-07-02 18:47:35 +0000 |
commit | 0f0398246c1db77b9e113d449c29ec54b7e19cb4 (patch) | |
tree | 7d9abd60fce9d1775ae95dc3bdc2442e4a2dbef0 /llvm/lib/Target/PowerPC/PPCTargetObjectFile.h | |
parent | 2b6fc8d613c50dda7f60961a0c5a19b690b450b9 (diff) | |
download | bcm5719-llvm-0f0398246c1db77b9e113d449c29ec54b7e19cb4.tar.gz bcm5719-llvm-0f0398246c1db77b9e113d449c29ec54b7e19cb4.zip |
[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
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCTargetObjectFile.h')
-rw-r--r-- | llvm/lib/Target/PowerPC/PPCTargetObjectFile.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCTargetObjectFile.h b/llvm/lib/Target/PowerPC/PPCTargetObjectFile.h index 9203e235742..262c52213d2 100644 --- a/llvm/lib/Target/PowerPC/PPCTargetObjectFile.h +++ b/llvm/lib/Target/PowerPC/PPCTargetObjectFile.h @@ -25,6 +25,9 @@ namespace llvm { virtual const MCSection * SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind, Mangler *Mang, const TargetMachine &TM) const; + + /// \brief Describe a TLS variable address within debug info. + virtual const MCExpr *getDebugThreadLocalSymbol(const MCSymbol *Sym) const; }; } // end namespace llvm |