aboutsummaryrefslogtreecommitdiff
path: root/tools/ccc/ccclib/Driver.py
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-01-18 21:35:24 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-01-18 21:35:24 +0000
commitaf44a62640480957c29d96c99853b50e3aceded8 (patch)
tree369a7422c958ed83e6810a246c24e31da11a34dc /tools/ccc/ccclib/Driver.py
parent4d2d04e9fb136e5f9530f4aa298f31e4c40c5ada (diff)
ccc: Bug fix, pch generation should not try to output on pipe and -E
should. This needs cleanup. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62473 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/ccc/ccclib/Driver.py')
-rw-r--r--tools/ccc/ccclib/Driver.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/ccc/ccclib/Driver.py b/tools/ccc/ccclib/Driver.py
index dfd6ff24c4..e8d2d3d027 100644
--- a/tools/ccc/ccclib/Driver.py
+++ b/tools/ccc/ccclib/Driver.py
@@ -679,10 +679,10 @@ class Driver(object):
# phase and there was no user override.
#
# FIXME: What is the best way to handle this?
- if (atTopLevel and
- isinstance(phase, Phases.PreprocessPhase) and
- not finalOutput):
- outputToPipe = True
+ if atTopLevel:
+ if (isinstance(phase.phase, Phases.PreprocessPhase) and
+ not finalOutput):
+ outputToPipe = True
elif hasPipe:
outputToPipe = True