aboutsummaryrefslogtreecommitdiffstats
path: root/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
commitbcd2498f4f1682dbdc41452add5b9bc72cbd6b3f (patch)
treec42cc25e701e45736f384bfced29bdbdf66a65a8 /lib/Support/Statistic.cpp
parent832171cb9724d2d31c8dfb73172e2be8f6dd13ee (diff)
downloadexternal_llvm-bcd2498f4f1682dbdc41452add5b9bc72cbd6b3f.zip
external_llvm-bcd2498f4f1682dbdc41452add5b9bc72cbd6b3f.tar.gz
external_llvm-bcd2498f4f1682dbdc41452add5b9bc72cbd6b3f.tar.bz2
Removed more <iostream> includes
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32321 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/Statistic.cpp')
-rw-r--r--lib/Support/Statistic.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/Support/Statistic.cpp b/lib/Support/Statistic.cpp
index 19cfff3..8c08271 100644
--- a/lib/Support/Statistic.cpp
+++ b/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...
}
}