summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/Statistic.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2006-12-07 20:28:15 +0000
committerBill Wendling <isanbard@gmail.com>2006-12-07 20:28:15 +0000
commit355fc5ad5008d57653e68dc248ac527e722c9b1e (patch)
treed2d4e1aedde1e1b04104716c4bab102641ee331a /llvm/lib/Support/Statistic.cpp
parent22e978a736cb34291c15de07e5b31d395d08dee5 (diff)
downloadbcm5719-llvm-355fc5ad5008d57653e68dc248ac527e722c9b1e.tar.gz
bcm5719-llvm-355fc5ad5008d57653e68dc248ac527e722c9b1e.zip
Removed more <iostream> includes
llvm-svn: 32321
Diffstat (limited to 'llvm/lib/Support/Statistic.cpp')
-rw-r--r--llvm/lib/Support/Statistic.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/Support/Statistic.cpp b/llvm/lib/Support/Statistic.cpp
index 19cfff33aac..8c082712358 100644
--- a/llvm/lib/Support/Statistic.cpp
+++ b/llvm/lib/Support/Statistic.cpp
@@ -23,9 +23,8 @@
#include "llvm/ADT/Statistic.h"
#include "llvm/Support/CommandLine.h"
+#include "llvm/Support/Streams.h"
#include "llvm/ADT/StringExtras.h"
-#include <sstream>
-#include <iostream>
#include <algorithm>
using namespace llvm;
@@ -100,7 +99,7 @@ Statistic::~Statistic() {
// Free all accumulated statistics...
delete AccumStats;
AccumStats = 0;
- if (OutStream != &std::cerr && OutStream != &std::cout)
+ if (OutStream != cerr.stream() && OutStream != cout.stream())
delete OutStream; // Close the file...
}
}
OpenPOWER on IntegriCloud