[PS4] Correct relocation for DWARF TLS references.
[oota-llvm.git] / lib / Target / X86 / X86TargetObjectFile.cpp
index 1d1c32eb2cb8f76c4a18739205bc06a827cfaf0a..a298ca88ed792f9fb9c6bb00ca4189074dbc95d7 100644 (file)
@@ -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