summaryrefslogtreecommitdiff
path: root/lib/Support/Statistic.cpp
diff options
context:
space:
mode:
authorDavid Greene <greened@obbligato.org>2010-01-05 01:28:47 +0000
committerDavid Greene <greened@obbligato.org>2010-01-05 01:28:47 +0000
commit8061a440f6cb54852079f7161f28e379c314475e (patch)
treeefbf3e8c236b4aab84d22531d497e9509d820020 /lib/Support/Statistic.cpp
parent8f1929b9eae512aedc0f3fedae3c0f24583171e1 (diff)
downloadllvm-8061a440f6cb54852079f7161f28e379c314475e.tar.gz
llvm-8061a440f6cb54852079f7161f28e379c314475e.tar.bz2
llvm-8061a440f6cb54852079f7161f28e379c314475e.tar.xz
Change errs() to dbgs().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92642 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/Statistic.cpp')
-rw-r--r--lib/Support/Statistic.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Support/Statistic.cpp b/lib/Support/Statistic.cpp
index 14f94bc284..e787670459 100644
--- a/lib/Support/Statistic.cpp
+++ b/lib/Support/Statistic.cpp
@@ -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 @@ StatisticInfo::~StatisticInfo() {
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.
}