From af44a62640480957c29d96c99853b50e3aceded8 Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Sun, 18 Jan 2009 21:35:24 +0000 Subject: [PATCH] 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 --- tools/ccc/ccclib/Driver.py | 8 ++++---- 1 file 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 -- 2.50.1