[llvm-commits] [llvm] r92642 - /llvm/trunk/lib/Support/Statistic.cpp

David Greene greened at obbligato.org
Mon Jan 4 17:28:48 PST 2010


Author: greened
Date: Mon Jan  4 19:28:47 2010
New Revision: 92642

URL: http://llvm.org/viewvc/llvm-project?rev=92642&view=rev
Log:
Change errs() to dbgs().

Modified:
    llvm/trunk/lib/Support/Statistic.cpp

Modified: llvm/trunk/lib/Support/Statistic.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/Statistic.cpp?rev=92642&r1=92641&r2=92642&view=diff

==============================================================================
--- llvm/trunk/lib/Support/Statistic.cpp (original)
+++ llvm/trunk/lib/Support/Statistic.cpp Mon Jan  4 19:28:47 2010
@@ -23,6 +23,7 @@
 
 #include "llvm/ADT/Statistic.h"
 #include "llvm/Support/CommandLine.h"
+#include "llvm/Support/Debug.h"
 #include "llvm/Support/ManagedStatic.h"
 #include "llvm/Support/raw_ostream.h"
 #include "llvm/System/Mutex.h"
@@ -127,6 +128,6 @@
   OutStream << '\n';  // Flush the output stream...
   OutStream.flush();
   
-  if (&OutStream != &outs() && &OutStream != &errs())
+  if (&OutStream != &outs() && &OutStream != &errs() && &OutStream != &dbgs())
     delete &OutStream;   // Close the file.
 }





More information about the llvm-commits mailing list