From: Daniel Dunbar Date: Fri, 20 Mar 2009 00:11:04 +0000 (+0000) Subject: Driver: Temporary hack to allow -ccc-print-bindings to work (for X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b7b61b26868a09dc1471895d0d39ed6c28245207;p=clang 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 --- 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(Dest); if (!PJ) { PJ = new PipedJob(); - cast(Dest)->addJob(PJ); + // FIXME: Temporary hack so that -ccc-print-bindings work until + // we have pipe support. Please remove later. + if (!CCCPrintBindings) + cast(Dest)->addJob(PJ); Dest = PJ; } Result = InputInfo(PJ, A->getType(), BaseInput);