aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/X86/X86TargetObjectFile.cpp
diff options
context:
space:
mode:
authorPaul Robinson <paul_robinson@playstation.sony.com>2015-03-02 17:44:52 +0000
committerPaul Robinson <paul_robinson@playstation.sony.com>2015-03-02 17:44:52 +0000
commit10ae2e52de3a049950dd5d4c6233893380e5948b (patch)
treeb4a0e1dfa2bc82840e88fc5a8ccc6c45d7fa5284 /llvm/lib/Target/X86/X86TargetObjectFile.cpp
parentb79ac88155e805015af1b5691e25a325c9eeda57 (diff)
downloadllvm-10ae2e52de3a049950dd5d4c6233893380e5948b.zip
llvm-10ae2e52de3a049950dd5d4c6233893380e5948b.tar.gz
llvm-10ae2e52de3a049950dd5d4c6233893380e5948b.tar.bz2
[PS4] Correct relocation for DWARF TLS references.
llvm-svn: 230979
Diffstat (limited to 'llvm/lib/Target/X86/X86TargetObjectFile.cpp')
-rw-r--r--llvm/lib/Target/X86/X86TargetObjectFile.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/Target/X86/X86TargetObjectFile.cpp b/llvm/lib/Target/X86/X86TargetObjectFile.cpp
index 1d1c32e..a298ca8 100644
--- a/llvm/lib/Target/X86/X86TargetObjectFile.cpp
+++ b/llvm/lib/Target/X86/X86TargetObjectFile.cpp
@@ -74,6 +74,11 @@ X86LinuxTargetObjectFile::getDebugThreadLocalSymbol(
return MCSymbolRefExpr::Create(Sym, MCSymbolRefExpr::VK_DTPOFF, getContext());
}
+const MCExpr *PS4TargetObjectFile::getDebugThreadLocalSymbol(
+ const MCSymbol *Sym) const {
+ return MCSymbolRefExpr::Create(Sym, MCSymbolRefExpr::VK_DTPOFF, getContext());
+}
+
const MCExpr *X86WindowsTargetObjectFile::getExecutableRelativeSymbol(
const ConstantExpr *CE, Mangler &Mang, const TargetMachine &TM) const {
// We are looking for the difference of two symbols, need a subtraction