#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
This commit is contained in:
Bill Wendling
2009-06-30 04:07:12 +00:00
parent f3c21b857b
commit 9cdd4f57c8
3 changed files with 24 additions and 27 deletions

View File

@ -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;
}