summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/Timer.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/Timer.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/Timer.cpp')
-rw-r--r--llvm/lib/Support/Timer.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/llvm/lib/Support/Timer.cpp b/llvm/lib/Support/Timer.cpp
index a39f169cb7b..077995d9fb8 100644
--- a/llvm/lib/Support/Timer.cpp
+++ b/llvm/lib/Support/Timer.cpp
@@ -14,11 +14,11 @@
#include "llvm/Support/Timer.h"
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/ManagedStatic.h"
+#include "llvm/Support/Streams.h"
#include "llvm/System/Process.h"
#include <algorithm>
#include <fstream>
#include <functional>
-#include <iostream>
#include <map>
using namespace llvm;
@@ -263,17 +263,17 @@ std::ostream *
llvm::GetLibSupportInfoOutputFile() {
std::string &LibSupportInfoOutputFilename = getLibSupportInfoOutputFilename();
if (LibSupportInfoOutputFilename.empty())
- return &std::cerr;
+ return cerr.stream();
if (LibSupportInfoOutputFilename == "-")
- return &std::cout;
+ return cout.stream();
std::ostream *Result = new std::ofstream(LibSupportInfoOutputFilename.c_str(),
std::ios::app);
if (!Result->good()) {
- std::cerr << "Error opening info-output-file '"
- << LibSupportInfoOutputFilename << " for appending!\n";
+ cerr << "Error opening info-output-file '"
+ << LibSupportInfoOutputFilename << " for appending!\n";
delete Result;
- return &std::cerr;
+ return cerr.stream();
}
return Result;
}
@@ -342,7 +342,7 @@ void TimerGroup::removeTimer() {
TimersToPrint.clear();
- if (OutStream != &std::cerr && OutStream != &std::cout)
+ if (OutStream != cerr.stream() && OutStream != cout.stream())
delete OutStream; // Close the file...
}
OpenPOWER on IntegriCloud