aboutsummaryrefslogtreecommitdiff
path: root/tools/ccc/ccclib/Driver.py
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-01-22 23:19:32 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-01-22 23:19:32 +0000
commit5f02d554555af7254bbe33529d4e574eeeac035c (patch)
tree2835c21ebc0f7483ed997ce72a435aa455fec8da /tools/ccc/ccclib/Driver.py
parent55eb68db969c83170059ca9f5f58dd9f357a01e6 (diff)
ccc: Bug fix, driver logic was allowing child jobs to pipe output when
parent wasn't expecting it. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62811 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/ccc/ccclib/Driver.py')
-rw-r--r--tools/ccc/ccclib/Driver.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/ccc/ccclib/Driver.py b/tools/ccc/ccclib/Driver.py
index 3452ed173b..2ba1cf6cd8 100644
--- a/tools/ccc/ccclib/Driver.py
+++ b/tools/ccc/ccclib/Driver.py
@@ -672,8 +672,8 @@ class Driver(object):
inputList = phase.inputs[0].inputs
# Only try to use pipes when exactly one input.
- canAcceptPipe = len(inputList) == 1 and tool.acceptsPipedInput()
- inputs = [createJobs(tc, p, canAcceptPipe, False,
+ attemptToPipeInput = len(inputList) == 1 and tool.acceptsPipedInput()
+ inputs = [createJobs(tc, p, attemptToPipeInput, False,
arch, tcArgs, linkingOutput)
for p in inputList]
@@ -694,7 +694,7 @@ class Driver(object):
# Figure out where to put the job (pipes).
jobList = jobs
- if canAcceptPipe and isinstance(inputs[0].source, Jobs.PipedJob):
+ if isinstance(inputs[0].source, Jobs.PipedJob):
jobList = inputs[0].source
baseInput = inputs[0].baseInput