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 | 053372dc3c25c5442b7349c612104e15c41233e8 (patch) | |
tree | 90daed95e6cabe31b86c363220979f393fbc1c81 | |
parent | 58b1ac76d470eb5faa7e98feae97c4906d4d146e (diff) | |
download | external_llvm-053372dc3c25c5442b7349c612104e15c41233e8.zip external_llvm-053372dc3c25c5442b7349c612104e15c41233e8.tar.gz external_llvm-053372dc3c25c5442b7349c612104e15c41233e8.tar.bz2 |
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
-rw-r--r-- | lib/CodeGen/AsmPrinter/DwarfWriter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfWriter.cpp b/lib/CodeGen/AsmPrinter/DwarfWriter.cpp index 3edb57f..cab6315 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()) |