These should *stop* the timer, not start it again.
llvm-svn: 66586
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfWriter.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfWriter.cpp
index fa230b5..98c2fe1 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfWriter.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/DwarfWriter.cpp
@@ -3050,7 +3050,7 @@
if (CompileUnits.empty()) {
if (TimePassesIsEnabled)
- DebugTimer->startTimer();
+ DebugTimer->stopTimer();
return;
}
@@ -3065,7 +3065,7 @@
// and any subprograms then there is not any debug info to emit.
if (!globalDIEs && !subprogramDIEs) {
if (TimePassesIsEnabled)
- DebugTimer->startTimer();
+ DebugTimer->stopTimer();
return;
}