aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/TargetLoweringObjectFile.cpp
diff options
context:
space:
mode:
authorUlrich Weigand <ulrich.weigand@de.ibm.com>2013-07-02 18:47:09 +0000
committerUlrich Weigand <ulrich.weigand@de.ibm.com>2013-07-02 18:47:09 +0000
commit2b6fc8d613c50dda7f60961a0c5a19b690b450b9 (patch)
treeaf16205fc05b686b5173b34f1ade38b0df5246eb /llvm/lib/Target/TargetLoweringObjectFile.cpp
parent8b3d22664e58e32095edfa58dfc3ce4ce2b7fd6f (diff)
downloadllvm-2b6fc8d613c50dda7f60961a0c5a19b690b450b9.zip
llvm-2b6fc8d613c50dda7f60961a0c5a19b690b450b9.tar.gz
llvm-2b6fc8d613c50dda7f60961a0c5a19b690b450b9.tar.bz2
[DebugInfo] Allow getDebugThreadLocalSymbol to return MCExpr
This allows getDebugThreadLocalSymbol to return a generic MCExpr instead of just a MCSymbolRefExpr. This is in preparation for supporting debug info for TLS variables on PowerPC, where we need to describe the variable location using a more complex expression than just MCSymbolRefExpr. llvm-svn: 185460
Diffstat (limited to 'llvm/lib/Target/TargetLoweringObjectFile.cpp')
-rw-r--r--llvm/lib/Target/TargetLoweringObjectFile.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/TargetLoweringObjectFile.cpp b/llvm/lib/Target/TargetLoweringObjectFile.cpp
index fc50aa5..cd810b6 100644
--- a/llvm/lib/Target/TargetLoweringObjectFile.cpp
+++ b/llvm/lib/Target/TargetLoweringObjectFile.cpp
@@ -318,7 +318,7 @@ getTTypeReference(const MCSymbolRefExpr *Sym, unsigned Encoding,
}
}
-const MCSymbolRefExpr *TargetLoweringObjectFile::getDebugThreadLocalSymbol(const MCSymbol *Sym) const {
+const MCExpr *TargetLoweringObjectFile::getDebugThreadLocalSymbol(const MCSymbol *Sym) const {
// FIXME: It's not clear what, if any, default this should have - perhaps a
// null return could mean 'no location' & we should just do that here.
return MCSymbolRefExpr::Create(Sym, *Ctx);