Print variable's display name in dwarf DIE.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65468 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Devang Patel 2009-02-25 19:41:35 +00:00
parent 58b1ac76d4
commit 053372dc3c

View File

@ -1817,7 +1817,7 @@ private:
DIE *CreateGlobalVariableDIE(CompileUnit *DW_Unit, const DIGlobalVariable &GV)
{
DIE *GVDie = new DIE(DW_TAG_variable);
const std::string &Name = GV.getName();
const std::string &Name = GV.getDisplayName();
AddString(GVDie, DW_AT_name, DW_FORM_string, Name);
const std::string &LinkageName = GV.getLinkageName();
if (!LinkageName.empty())