summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGDebugInfo.cpp
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2009-11-07 00:10:18 +0000
committerDevang Patel <dpatel@apple.com>2009-11-07 00:10:18 +0000
commiteef461c230737912c2b22e49cb138ae7d6a42f21 (patch)
tree442a9a7325379bf33a423f178283e7b5d2ee7b51 /clang/lib/CodeGen/CGDebugInfo.cpp
parent01cad4c6b03579286dbed8900d9e16ea7eebea8c (diff)
downloadbcm5719-llvm-eef461c230737912c2b22e49cb138ae7d6a42f21.tar.gz
bcm5719-llvm-eef461c230737912c2b22e49cb138ae7d6a42f21.zip
Do not emit linkage name for global variables. It confuses gdb, because it picks up AT_MIPS_linkage_name and ignores AT_name.
llvm-svn: 86308
Diffstat (limited to 'clang/lib/CodeGen/CGDebugInfo.cpp')
-rw-r--r--clang/lib/CodeGen/CGDebugInfo.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp
index 8f4aeb400a1..e1d1c19e58f 100644
--- a/clang/lib/CodeGen/CGDebugInfo.cpp
+++ b/clang/lib/CodeGen/CGDebugInfo.cpp
@@ -1409,7 +1409,9 @@ void CGDebugInfo::EmitGlobalVariable(llvm::GlobalVariable *Var,
}
DebugFactory.CreateGlobalVariable(getContext(Decl, Unit),
- Name, Name, Name, Unit, LineNo,
+ Decl->getNameAsString(),
+ Decl->getNameAsString(),
+ NULL, Unit, LineNo,
getOrCreateType(T, Unit),
Var->hasInternalLinkage(),
true/*definition*/, Var);
OpenPOWER on IntegriCloud