aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-03-20 00:11:04 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-03-20 00:11:04 +0000
commitb7b61b26868a09dc1471895d0d39ed6c28245207 (patch)
treea26fb9031db5672f4e4ecf3f62391e008348127d
parent4d7a089144f336b11e5e8ce437b3b27bce2b310d (diff)
Driver: Temporary hack to allow -ccc-print-bindings to work (for
testing) even with -pipe on. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67348 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Driver/Driver.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/Driver/Driver.cpp b/lib/Driver/Driver.cpp
index f5daf3e16b..10b73d3a0e 100644
--- a/lib/Driver/Driver.cpp
+++ b/lib/Driver/Driver.cpp
@@ -791,7 +791,10 @@ void Driver::BuildJobsForAction(Compilation &C,
PipedJob *PJ = dyn_cast<PipedJob>(Dest);
if (!PJ) {
PJ = new PipedJob();
- cast<JobList>(Dest)->addJob(PJ);
+ // FIXME: Temporary hack so that -ccc-print-bindings work until
+ // we have pipe support. Please remove later.
+ if (!CCCPrintBindings)
+ cast<JobList>(Dest)->addJob(PJ);
Dest = PJ;
}
Result = InputInfo(PJ, A->getType(), BaseInput);