[cfe-commits] r62473 - /cfe/trunk/tools/ccc/ccclib/Driver.py

Daniel Dunbar daniel at zuster.org
Sun Jan 18 13:35:25 PST 2009


Author: ddunbar
Date: Sun Jan 18 15:35:24 2009
New Revision: 62473

URL: http://llvm.org/viewvc/llvm-project?rev=62473&view=rev
Log:
ccc: Bug fix, pch generation should not try to output on pipe and -E
should. This needs cleanup.

Modified:
    cfe/trunk/tools/ccc/ccclib/Driver.py

Modified: cfe/trunk/tools/ccc/ccclib/Driver.py
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/ccc/ccclib/Driver.py?rev=62473&r1=62472&r2=62473&view=diff

==============================================================================
--- cfe/trunk/tools/ccc/ccclib/Driver.py (original)
+++ cfe/trunk/tools/ccc/ccclib/Driver.py Sun Jan 18 15:35:24 2009
@@ -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
 





More information about the cfe-commits mailing list