forked from OSchip/llvm-project
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
This commit is contained in:
parent
01cad4c6b0
commit
eef461c230
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue