summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CompilerDriver/Main.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2009-06-30 04:07:12 +0000
committerBill Wendling <isanbard@gmail.com>2009-06-30 04:07:12 +0000
commit855263371af0561bbefd467aab9a99f315608e34 (patch)
tree5e4a91fefaa49d151e880aabadb1273009b8c0ba /llvm/lib/CompilerDriver/Main.cpp
parentcfbfe78e9e4a5b95196361a0038e839889ea2257 (diff)
downloadbcm5719-llvm-855263371af0561bbefd467aab9a99f315608e34.tar.gz
bcm5719-llvm-855263371af0561bbefd467aab9a99f315608e34.zip
#include <iostream> is forbidden. Remove it in favor of raw_ostream.
llvm-svn: 74507
Diffstat (limited to 'llvm/lib/CompilerDriver/Main.cpp')
-rw-r--r--llvm/lib/CompilerDriver/Main.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/CompilerDriver/Main.cpp b/llvm/lib/CompilerDriver/Main.cpp
index 3a2917032ec..c9c0413028d 100644
--- a/llvm/lib/CompilerDriver/Main.cpp
+++ b/llvm/lib/CompilerDriver/Main.cpp
@@ -16,9 +16,9 @@
#include "llvm/CompilerDriver/Error.h"
#include "llvm/CompilerDriver/Plugin.h"
+#include "llvm/Support/raw_ostream.h"
#include "llvm/System/Path.h"
-#include <iostream>
#include <stdexcept>
#include <string>
@@ -91,7 +91,7 @@ int Main(int argc, char** argv) {
if (CheckGraph) {
int ret = graph.Check();
if (!ret)
- std::cerr << "check-graph: no errors found.\n";
+ llvm::errs() << "check-graph: no errors found.\n";
return ret;
}
@@ -119,10 +119,10 @@ int Main(int argc, char** argv) {
return ec.code();
}
catch(const std::exception& ex) {
- std::cerr << argv[0] << ": " << ex.what() << '\n';
+ llvm::errs() << argv[0] << ": " << ex.what() << '\n';
}
catch(...) {
- std::cerr << argv[0] << ": unknown error!\n";
+ llvm::errs() << argv[0] << ": unknown error!\n";
}
return 1;
}
OpenPOWER on IntegriCloud