From 9c4210794ee42542a20023cd0a800003797523e0 Mon Sep 17 00:00:00 2001 From: Torok Edwin Date: Wed, 7 Apr 2010 10:44:46 +0000 Subject: Workaround the breakage in r100616 by guarding all timers with TimePassesIsEnabled. This should allow make check to pass. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100618 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/AsmPrinter/DwarfException.cpp | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'lib/CodeGen/AsmPrinter/DwarfException.cpp') diff --git a/lib/CodeGen/AsmPrinter/DwarfException.cpp b/lib/CodeGen/AsmPrinter/DwarfException.cpp index b73147d206..c4bd696009 100644 --- a/lib/CodeGen/AsmPrinter/DwarfException.cpp +++ b/lib/CodeGen/AsmPrinter/DwarfException.cpp @@ -33,17 +33,11 @@ #include "llvm/Target/TargetRegisterInfo.h" #include "llvm/Support/Dwarf.h" #include "llvm/Support/FormattedStream.h" -#include "llvm/Support/Timer.h" #include "llvm/ADT/SmallString.h" #include "llvm/ADT/StringExtras.h" #include "llvm/ADT/Twine.h" using namespace llvm; -namespace { - const char *DWARFGroupName = "DWARF Emission"; - const char *EHTimerName = "DWARF Exception Writer"; -} // end anonymous namespace - DwarfException::DwarfException(AsmPrinter *A) : Asm(A), MMI(Asm->MMI), shouldEmitTable(false), shouldEmitMoves(false), shouldEmitTableModule(false), shouldEmitMovesModule(false) {} @@ -896,8 +890,6 @@ void DwarfException::EmitExceptionTable() { /// EndModule - Emit all exception information that should come after the /// content. void DwarfException::EndModule() { - NamedRegionTimer T(EHTimerName, DWARFGroupName); - if (Asm->MAI->getExceptionHandlingType() != ExceptionHandling::Dwarf) return; @@ -917,7 +909,6 @@ void DwarfException::EndModule() { /// BeginFunction - Gather pre-function exception information. Assumes it's /// being emitted immediately after the function entry point. void DwarfException::BeginFunction(const MachineFunction *MF) { - NamedRegionTimer T(EHTimerName, DWARFGroupName); shouldEmitTable = shouldEmitMoves = false; // If any landing pads survive, we need an EH table. @@ -939,7 +930,6 @@ void DwarfException::BeginFunction(const MachineFunction *MF) { /// EndFunction - Gather and emit post-function exception information. /// void DwarfException::EndFunction() { - NamedRegionTimer T(EHTimerName, DWARFGroupName); if (!shouldEmitMoves && !shouldEmitTable) return; Asm->OutStreamer.EmitLabel(Asm->GetTempSymbol("eh_func_end", -- cgit v1.2.3-18-g5258