[cfe-commits] r67254 - /cfe/trunk/lib/Driver/Driver.cpp
Daniel Dunbar
daniel at zuster.org
Wed Mar 18 16:18:20 PDT 2009
Author: ddunbar
Date: Wed Mar 18 18:18:19 2009
New Revision: 67254
URL: http://llvm.org/viewvc/llvm-project?rev=67254&view=rev
Log:
Driver: Forcibly disable pipe support until we can execute them, the
driver is functional without them.
Modified:
cfe/trunk/lib/Driver/Driver.cpp
Modified: cfe/trunk/lib/Driver/Driver.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Driver.cpp?rev=67254&r1=67253&r2=67254&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/Driver.cpp (original)
+++ cfe/trunk/lib/Driver/Driver.cpp Wed Mar 18 18:18:19 2009
@@ -608,6 +608,11 @@
llvm::PrettyStackTraceString CrashInfo("Building compilation jobs");
bool SaveTemps = C.getArgs().hasArg(options::OPT_save_temps);
bool UsePipes = C.getArgs().hasArg(options::OPT_pipe);
+
+ // FIXME: Pipes are forcibly disabled until we support executing
+ // them.
+ if (!CCCPrintBindings)
+ UsePipes = false;
// -save-temps inhibits pipes.
if (SaveTemps && UsePipes) {
@@ -684,6 +689,13 @@
const char *LinkingOutput,
InputInfo &Result) const {
llvm::PrettyStackTraceString CrashInfo("Building compilation jobs for action");
+
+ bool UsePipes = C.getArgs().hasArg(options::OPT_pipe);
+ // FIXME: Pipes are forcibly disabled until we support executing
+ // them.
+ if (!CCCPrintBindings)
+ UsePipes = false;
+
if (const InputAction *IA = dyn_cast<InputAction>(A)) {
// FIXME: This is broken, linker inputs won't work here.
assert(isa<PositionalArg>(IA->getInputArg()) && "FIXME: Linker inputs");
@@ -749,7 +761,7 @@
if (AtTopLevel) {
if (isa<PreprocessJobAction>(A) && !C.getArgs().hasArg(options::OPT_o))
OutputToPipe = true;
- } else if (C.getArgs().hasArg(options::OPT_pipe))
+ } else if (UsePipes)
OutputToPipe = true;
}
More information about the cfe-commits
mailing list