summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp
diff options
context:
space:
mode:
authorTorok Edwin <edwintorok@gmail.com>2010-04-07 10:44:46 +0000
committerTorok Edwin <edwintorok@gmail.com>2010-04-07 10:44:46 +0000
commitf8dba24a9bba77643258d1be0ce598dbbb600b68 (patch)
tree73b9063cd8d004dafde2704ad14dfa76fbc3c4a9 /llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp
parentfcc14141c766549cdc7f5dd035ceccfd733102e8 (diff)
downloadbcm5719-llvm-f8dba24a9bba77643258d1be0ce598dbbb600b68.tar.gz
bcm5719-llvm-f8dba24a9bba77643258d1be0ce598dbbb600b68.zip
Workaround the breakage in r100616 by guarding all timers with
TimePassesIsEnabled. This should allow make check to pass. llvm-svn: 100618
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp
index b73147d2065..c4bd696009b 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp
+++ b/llvm/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",
OpenPOWER on IntegriCloud