OSDN Git Service

These should *stop* the timer, not start it again.
authorBill Wendling <isanbard@gmail.com>
Tue, 10 Mar 2009 22:02:13 +0000 (22:02 +0000)
committerBill Wendling <isanbard@gmail.com>
Tue, 10 Mar 2009 22:02:13 +0000 (22:02 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@66586 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/AsmPrinter/DwarfWriter.cpp

index fa230b5..98c2fe1 100644 (file)
@@ -3050,7 +3050,7 @@ public:
       
     if (CompileUnits.empty()) {
       if (TimePassesIsEnabled)
-        DebugTimer->startTimer();
+        DebugTimer->stopTimer();
 
       return;
     }
@@ -3065,7 +3065,7 @@ public:
     // and any subprograms then there is not any debug info to emit.
     if (!globalDIEs && !subprogramDIEs) {
       if (TimePassesIsEnabled)
-        DebugTimer->startTimer();
+        DebugTimer->stopTimer();
 
       return;
     }