ARM: Enable use of relocation type tlsldo in debug info for tls data.

This fixes PR18554.

Reviewers: Renato Golin, Keith Walker


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@200735 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Kai Nacke
2014-02-04 05:43:09 +00:00
parent cec7ce78d7
commit eabe14bd96
3 changed files with 35 additions and 0 deletions

View File

@ -51,3 +51,9 @@ getTTypeGlobalReference(const GlobalValue *GV, Mangler *Mang,
MCSymbolRefExpr::VK_ARM_TARGET2,
getContext());
}
const MCExpr *ARMElfTargetObjectFile::
getDebugThreadLocalSymbol(const MCSymbol *Sym) const {
return MCSymbolRefExpr::Create(Sym, MCSymbolRefExpr::VK_ARM_TLSLDO,
getContext());
}