diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-03-13 12:16:31 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-03-13 12:16:31 +0000 |
commit | 26308bafd3610f566891eec6c29480ac5ec1c433 (patch) | |
tree | 0d16fe0429b2fb34ee2b2d75b3260eb74020d258 | |
parent | ad2a9af666efdd9afe3bb5f886bcb0d1c9a0f0c3 (diff) |
ccc: Don't print the arch for every action when printing phases.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66886 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | tools/ccc/ccclib/Driver.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/tools/ccc/ccclib/Driver.py b/tools/ccc/ccclib/Driver.py index b18d28bec5..e631f55c28 100644 --- a/tools/ccc/ccclib/Driver.py +++ b/tools/ccc/ccclib/Driver.py @@ -315,7 +315,7 @@ class Driver(object): 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 @@ class Driver(object): 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 |