[llvm-commits] [llvm] r65468 - /llvm/trunk/lib/CodeGen/AsmPrinter/DwarfWriter.cpp
Devang Patel
dpatel at apple.com
Wed Feb 25 11:41:35 PST 2009
Author: dpatel
Date: Wed Feb 25 13:41:35 2009
New Revision: 65468
URL: http://llvm.org/viewvc/llvm-project?rev=65468&view=rev
Log:
Print variable's display name in dwarf DIE.
Modified:
llvm/trunk/lib/CodeGen/AsmPrinter/DwarfWriter.cpp
Modified: llvm/trunk/lib/CodeGen/AsmPrinter/DwarfWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/DwarfWriter.cpp?rev=65468&r1=65467&r2=65468&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/DwarfWriter.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/DwarfWriter.cpp Wed Feb 25 13:41:35 2009
@@ -1817,7 +1817,7 @@
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())
More information about the llvm-commits
mailing list