diff options
| author | Devang Patel <dpatel@apple.com> | 2009-02-25 19:41:35 +0000 |
|---|---|---|
| committer | Devang Patel <dpatel@apple.com> | 2009-02-25 19:41:35 +0000 |
| commit | 7e7fa83f6ef6c49baf3ef8cc49595915361323ea (patch) | |
| tree | ca7c757dd2344280f793aa2b96a01c434ec8f797 /llvm/lib/CodeGen | |
| parent | 7f74112756f6cada66df1237b86788e71401bae5 (diff) | |
| download | bcm5719-llvm-7e7fa83f6ef6c49baf3ef8cc49595915361323ea.tar.gz bcm5719-llvm-7e7fa83f6ef6c49baf3ef8cc49595915361323ea.zip | |
Print variable's display name in dwarf DIE.
llvm-svn: 65468
Diffstat (limited to 'llvm/lib/CodeGen')
| -rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfWriter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfWriter.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfWriter.cpp index 3edb57fce81..cab631524fc 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfWriter.cpp +++ b/llvm/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()) |

