summaryrefslogtreecommitdiff
path: root/lib/CompilerDriver/Main.cpp
diff options
context:
space:
mode:
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;
}