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
diff --git a/tools/ccc/ccclib/Driver.py b/tools/ccc/ccclib/Driver.py
index dfd6ff2..e8d2d3d 100644
--- a/tools/ccc/ccclib/Driver.py
+++ b/tools/ccc/ccclib/Driver.py
@@ -679,10 +679,10 @@
# 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