diff options
author | Devang Patel <dpatel@apple.com> | 2009-07-14 00:55:28 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2009-07-14 00:55:28 +0000 |
commit | 1a8d2d2d4f9c019e3ace0053ce3f33449cf85c44 (patch) | |
tree | cb0510f38787107c8ed08bdc2a42dca6989294b2 /lib/CodeGen | |
parent | 91267547f786ff5a153ca437517b8678f672c55b (diff) | |
download | external_llvm-1a8d2d2d4f9c019e3ace0053ce3f33449cf85c44.zip external_llvm-1a8d2d2d4f9c019e3ace0053ce3f33449cf85c44.tar.gz external_llvm-1a8d2d2d4f9c019e3ace0053ce3f33449cf85c44.tar.bz2 |
Do not use Mangler to remove '1' from linkage name.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75574 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r-- | lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index fbedfa0..6097447 100644 --- a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -15,7 +15,6 @@ #include "llvm/Module.h" #include "llvm/CodeGen/MachineModuleInfo.h" #include "llvm/Support/Timer.h" -#include "llvm/Support/Mangler.h" #include "llvm/System/Path.h" #include "llvm/Target/TargetAsmInfo.h" #include "llvm/Target/TargetRegisterInfo.h" @@ -786,12 +785,9 @@ DIE *DwarfDebug::CreateGlobalVariableDIE(CompileUnit *DW_Unit, AddString(GVDie, dwarf::DW_AT_name, dwarf::DW_FORM_string, Name); std::string LinkageName; GV.getLinkageName(LinkageName); - if (!LinkageName.empty()) { - Mangler *Mg = Asm->getMangler(); - assert (Mg && "Unable to find Mangler!"); + if (!LinkageName.empty()) AddString(GVDie, dwarf::DW_AT_MIPS_linkage_name, dwarf::DW_FORM_string, - Mg->makeNameProper(LinkageName)); - } + LinkageName); AddType(DW_Unit, GVDie, GV.getType()); if (!GV.isLocalToUnit()) AddUInt(GVDie, dwarf::DW_AT_external, dwarf::DW_FORM_flag, 1); @@ -859,14 +855,9 @@ DIE *DwarfDebug::CreateSubprogramDIE(CompileUnit *DW_Unit, std::string LinkageName; SP.getLinkageName(LinkageName); - - if (!LinkageName.empty()) { - Mangler *Mg = Asm->getMangler(); - assert (Mg && "Unable to find Mangler!"); + if (!LinkageName.empty()) AddString(SPDie, dwarf::DW_AT_MIPS_linkage_name, dwarf::DW_FORM_string, - Mg->makeNameProper(LinkageName)); - } - + LinkageName); AddSourceLine(SPDie, &SP); DICompositeType SPTy = SP.getType(); |