Driver: Print -ccc-print-phases on stderr.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66906 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Driver/Driver.cpp b/lib/Driver/Driver.cpp
index fdc60da..d09aa18 100644
--- a/lib/Driver/Driver.cpp
+++ b/lib/Driver/Driver.cpp
@@ -232,7 +232,6 @@
return true;
}
-// FIXME: This shouldn't be here?
static unsigned PrintActions1(const ArgList &Args,
Action *A,
std::map<Action*, unsigned> &Ids) {
@@ -261,7 +260,7 @@
unsigned Id = Ids.size();
Ids[A] = Id;
- llvm::outs() << Id << ": " << os.str() << ", "
+ llvm::errs() << Id << ": " << os.str() << ", "
<< types::getTypeName(A->getType()) << "\n";
return Id;
@@ -271,9 +270,8 @@
const ActionList &Actions) const {
std::map<Action*, unsigned> Ids;
for (ActionList::const_iterator it = Actions.begin(), ie = Actions.end();
- it != ie; ++it) {
+ it != ie; ++it)
PrintActions1(Args, *it, Ids);
- }
}
void Driver::BuildUniversalActions(ArgList &Args, ActionList &Actions) {