]> granicus.if.org Git - clang/commitdiff
ccc: Bug fix, pch generation should not try to output on pipe and -E
authorDaniel Dunbar <daniel@zuster.org>
Sun, 18 Jan 2009 21:35:24 +0000 (21:35 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Sun, 18 Jan 2009 21:35:24 +0000 (21:35 +0000)
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

index dfd6ff24c4ba1d45da5fb2a3ffd7b00df7312cd5..e8d2d3d0279782f418399a7cf76d050f2c15866a 100644 (file)
@@ -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