From b4c9579e6912dbdb44803bcdecc43d2233c908c3 Mon Sep 17 00:00:00 2001 From: Devang Patel Date: Mon, 13 Jul 2009 21:26:33 +0000 Subject: [PATCH] revert rev. 75503 for now. llvm-svn: 75507 --- llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 18 +++--------------- llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h | 5 +---- 2 files changed, 4 insertions(+), 19 deletions(-) diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index dab995753695..32f567318cb2 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -225,7 +225,7 @@ DwarfDebug::DwarfDebug(raw_ostream &OS, AsmPrinter *A, const TargetAsmInfo *T) AbbreviationsSet(InitAbbreviationsSetSize), Abbreviations(), ValuesSet(InitValuesSetSize), Values(), StringPool(), SectionMap(), SectionSourceLines(), didInitial(false), shouldEmit(false), - FunctionDbgScope(0), DebugTimer(0), LLVMMangler(0) { + FunctionDbgScope(0), DebugTimer(0) { if (TimePassesIsEnabled) DebugTimer = new Timer("Dwarf Debug Writer", getDwarfTimerGroup()); @@ -787,7 +787,7 @@ DIE *DwarfDebug::CreateGlobalVariableDIE(CompileUnit *DW_Unit, GV.getLinkageName(LinkageName); if (!LinkageName.empty()) AddString(GVDie, dwarf::DW_AT_MIPS_linkage_name, dwarf::DW_FORM_string, - LLVMMangler->makeNameProper(LinkageName)); + LinkageName); AddType(DW_Unit, GVDie, GV.getType()); if (!GV.isLocalToUnit()) AddUInt(GVDie, dwarf::DW_AT_external, dwarf::DW_FORM_flag, 1); @@ -858,7 +858,7 @@ DIE *DwarfDebug::CreateSubprogramDIE(CompileUnit *DW_Unit, if (!LinkageName.empty()) AddString(SPDie, dwarf::DW_AT_MIPS_linkage_name, dwarf::DW_FORM_string, - LLVMMangler->makeNameProper(LinkageName)); + LinkageName); AddSourceLine(SPDie, &SP); @@ -1278,16 +1278,6 @@ void DwarfDebug::BeginModule(Module *M, MachineModuleInfo *mmi) { SmallVector SPs; CollectDebugInfoAnchors(*M, CUs, GVs, SPs); - LLVMMangler = new Mangler(*M, TAI->getGlobalPrefix()); - // add chars used in ObjC method names so method names aren't mangled - LLVMMangler->markCharAcceptable('['); - LLVMMangler->markCharAcceptable(']'); - LLVMMangler->markCharAcceptable('('); - LLVMMangler->markCharAcceptable(')'); - LLVMMangler->markCharAcceptable('-'); - LLVMMangler->markCharAcceptable('+'); - LLVMMangler->markCharAcceptable(' '); - // Create all the compile unit DIEs. for (SmallVector::iterator I = CUs.begin(), E = CUs.end(); I != E; ++I) @@ -1418,8 +1408,6 @@ void DwarfDebug::EndModule() { if (TimePassesIsEnabled) DebugTimer->stopTimer(); - - delete LLVMMangler; } /// BeginFunction - Gather pre-function debug information. Assumes being diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h index 78260e564231..a4072f5ce92b 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h @@ -20,7 +20,6 @@ #include "llvm/CodeGen/MachineLocation.h" #include "llvm/Analysis/DebugInfo.h" #include "llvm/Support/raw_ostream.h" -#include "llvm/Support/Mangler.h" #include "llvm/ADT/DenseMap.h" #include "llvm/ADT/FoldingSet.h" #include "llvm/ADT/SmallSet.h" @@ -180,9 +179,7 @@ class VISIBILITY_HIDDEN DwarfDebug : public Dwarf { /// DebugTimer - Timer for the Dwarf debug writer. Timer *DebugTimer; - - Mangler *LLVMMangler; - + struct FunctionDebugFrameInfo { unsigned Number; std::vector Moves;