Fix PR16508.
[oota-llvm.git] / lib / CodeGen / TargetLoweringObjectFileImpl.cpp
index 7e7359a8feed9ee1eb5f508aa500158cfc0d78d8..69d55913caf00916a41a507b71c8e75c638cffd7 100644 (file)
@@ -401,6 +401,10 @@ TargetLoweringObjectFileELF::InitializeELF(bool UseInitArray_) {
                                SectionKind::getDataRel());
 }
 
+const MCSymbolRefExpr *TargetLoweringObjectFileELF::getDebugThreadLocalSymbol(const MCSymbol *Sym) const {
+  return MCSymbolRefExpr::Create(Sym, MCSymbolRefExpr::VK_DTPOFF, getContext());
+}
+
 //===----------------------------------------------------------------------===//
 //                                 MachO
 //===----------------------------------------------------------------------===//