]> granicus.if.org Git - clang/commitdiff
Driver: Temporary hack to allow -ccc-print-bindings to work (for
authorDaniel Dunbar <daniel@zuster.org>
Fri, 20 Mar 2009 00:11:04 +0000 (00:11 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Fri, 20 Mar 2009 00:11:04 +0000 (00:11 +0000)
testing) even with -pipe on.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67348 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Driver/Driver.cpp

index f5daf3e16bb0a5526bcdaa0eb0b36639ac1f9e36..10b73d3a0ef8bbb686e1c83bc78907348e6dec07 100644 (file)
@@ -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);