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

Daniel Dunbar daniel at zuster.org
Fri Mar 13 05:16:33 PDT 2009


Author: ddunbar
Date: Fri Mar 13 07:16:31 2009
New Revision: 66886

URL: http://llvm.org/viewvc/llvm-project?rev=66886&view=rev
Log:
ccc: Don't print the arch for every action when printing phases.

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=66886&r1=66885&r2=66886&view=diff

==============================================================================
--- cfe/trunk/tools/ccc/ccclib/Driver.py (original)
+++ cfe/trunk/tools/ccc/ccclib/Driver.py Fri Mar 13 07:16:31 2009
@@ -315,7 +315,7 @@
                                                                        for v in values]))
 
     def printPhases(self, phases, args):
-        def printPhase(p, f, steps, arch=None):
+        def printPhase(p, f, steps):
             if p in steps:
                 return steps[p]
 
@@ -324,17 +324,15 @@
                 inputStr = '"%s"' % args.getValue(p.filename)
             elif isinstance(p, Phases.BindArchAction):
                 phaseName = 'bind-arch'
-                inputs = [printPhase(i, f, steps, p.arch) 
+                inputs = [printPhase(i, f, steps) 
                           for i in p.inputs]
                 inputStr = '"%s", {%s}' % (args.getValue(p.arch), 
                                            ', '.join(map(str, inputs)))
             else:
                 phaseName = p.phase.name
-                inputs = [printPhase(i, f, steps, arch) 
+                inputs = [printPhase(i, f, steps) 
                           for i in p.inputs]
                 inputStr = '{%s}' % ', '.join(map(str, inputs))
-            if arch is not None:
-                phaseName += '-' + args.getValue(arch)
             steps[p] = index = len(steps)
             print "%d: %s, %s, %s" % (index,phaseName,inputStr,p.type.name)
             return index





More information about the cfe-commits mailing list