aboutsummaryrefslogtreecommitdiff
path: root/lib/Driver/Driver.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-03-13 17:20:20 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-03-13 17:20:20 +0000
commitb269c32596dadf9f653cfffae6981d27e6eebc2e (patch)
tree6a8887efc959db92689448f99687f29eb2a00d42 /lib/Driver/Driver.cpp
parent36c233837a37e295ecef133739d2b6429c72b960 (diff)
Driver: Print -ccc-print-phases on stderr.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66906 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/Driver.cpp')
-rw-r--r--lib/Driver/Driver.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/Driver/Driver.cpp b/lib/Driver/Driver.cpp
index fdc60daf0b..d09aa18d22 100644
--- a/lib/Driver/Driver.cpp
+++ b/lib/Driver/Driver.cpp
@@ -232,7 +232,6 @@ bool Driver::HandleImmediateArgs(const ArgList &Args) {
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 @@ static unsigned PrintActions1(const ArgList &Args,
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 @@ void Driver::PrintActions(const ArgList &Args,
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) {