aboutsummaryrefslogtreecommitdiff
path: root/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
commit9cdd4f57c85908e82e12cb996f71fd34fb43bccc (patch)
tree33b966c96455edde17af223730a86f38a03c2ea6 /lib/CompilerDriver/Main.cpp
parentf3c21b857b8449bcde35e499ef8268c0fec9514d (diff)
#include <iostream> is forbidden. Remove it in favor of raw_ostream.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74507 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CompilerDriver/Main.cpp')
-rw-r--r--lib/CompilerDriver/Main.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/CompilerDriver/Main.cpp b/lib/CompilerDriver/Main.cpp
index 3a2917032e..c9c0413028 100644
--- a/lib/CompilerDriver/Main.cpp
+++ b/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;
}