From 053372dc3c25c5442b7349c612104e15c41233e8 Mon Sep 17 00:00:00 2001 From: Devang Patel Date: Wed, 25 Feb 2009 19:41:35 +0000 Subject: [PATCH] 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 --- lib/CodeGen/AsmPrinter/DwarfWriter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/CodeGen/AsmPrinter/DwarfWriter.cpp b/lib/CodeGen/AsmPrinter/DwarfWriter.cpp index 3edb57fce81..cab631524fc 100644 --- a/lib/CodeGen/AsmPrinter/DwarfWriter.cpp +++ b/lib/CodeGen/AsmPrinter/DwarfWriter.cpp @@ -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())