aboutsummaryrefslogtreecommitdiff
path: root/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
commit0284fdc5855c21545c58f0fe8edd5a680e0b29ea (patch)
treee3cd61e051020daa4906f4c2a18c92df11a1c445 /lib/CodeGen/CGDebugInfo.cpp
parent88fad6310d3104e3ac4ab685227beabaa76faf7b (diff)
Do not emit linkage name for global variables. It confuses gdb, because it picks up AT_MIPS_linkage_name and ignores AT_name.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86308 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGDebugInfo.cpp')
-rw-r--r--lib/CodeGen/CGDebugInfo.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/CodeGen/CGDebugInfo.cpp b/lib/CodeGen/CGDebugInfo.cpp
index 8f4aeb400a..e1d1c19e58 100644
--- a/lib/CodeGen/CGDebugInfo.cpp
+++ b/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);