diff options
author | Bill Wendling <isanbard@gmail.com> | 2009-06-30 04:07:12 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2009-06-30 04:07:12 +0000 |
commit | 9cdd4f57c85908e82e12cb996f71fd34fb43bccc (patch) | |
tree | 33b966c96455edde17af223730a86f38a03c2ea6 /lib/CompilerDriver/Action.cpp | |
parent | f3c21b857b8449bcde35e499ef8268c0fec9514d (diff) | |
download | external_llvm-9cdd4f57c85908e82e12cb996f71fd34fb43bccc.zip external_llvm-9cdd4f57c85908e82e12cb996f71fd34fb43bccc.tar.gz external_llvm-9cdd4f57c85908e82e12cb996f71fd34fb43bccc.tar.bz2 |
#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/Action.cpp')
-rw-r--r-- | lib/CompilerDriver/Action.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/lib/CompilerDriver/Action.cpp b/lib/CompilerDriver/Action.cpp index 816f793..5fd63ee 100644 --- a/lib/CompilerDriver/Action.cpp +++ b/lib/CompilerDriver/Action.cpp @@ -13,10 +13,8 @@ #include "llvm/CompilerDriver/Action.h" #include "llvm/CompilerDriver/BuiltinOptions.h" - +#include "llvm/Support/raw_ostream.h" #include "llvm/System/Program.h" - -#include <iostream> #include <stdexcept> using namespace llvm; @@ -58,15 +56,15 @@ namespace { } void print_string (const std::string& str) { - std::cerr << str << ' '; + errs() << str << ' '; } } int llvmc::Action::Execute() const { if (DryRun || VerboseMode) { - std::cerr << Command_ << " "; + errs() << Command_ << " "; std::for_each(Args_.begin(), Args_.end(), print_string); - std::cerr << '\n'; + errs() << '\n'; } if (DryRun) return 0; |