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
This commit is contained in:
Daniel Dunbar 2009-03-13 12:16:31 +00:00
Родитель ad2a9af666
Коммит 26308bafd3
1 изменённых файлов: 3 добавлений и 5 удалений

Просмотреть файл

@ -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