aboutsummaryrefslogtreecommitdiff
path: root/tools/ccc/ccclib/Driver.py
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-01-07 01:29:28 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-01-07 01:29:28 +0000
commitfb2c5c44fda084ae824f129de4120f1694e6f5a9 (patch)
tree9ca43ba5a1305bcc8b50e20ea781394eb31637eb /tools/ccc/ccclib/Driver.py
parentbdd686dc6af3669a6bf1c6bb09aea3437a67fb60 (diff)
ccc: Refactor so that all accesses to actual input strings go through
the ArgList. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@61844 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/ccc/ccclib/Driver.py')
-rw-r--r--tools/ccc/ccclib/Driver.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/ccc/ccclib/Driver.py b/tools/ccc/ccclib/Driver.py
index aa617c611e..a8aab6cd26 100644
--- a/tools/ccc/ccclib/Driver.py
+++ b/tools/ccc/ccclib/Driver.py
@@ -104,10 +104,10 @@ class Driver(object):
self.claim(hasHashHashHash)
for j in jobs.iterjobs():
if isinstance(j, Jobs.Command):
- print '"%s"' % '" "'.join(j.render(argv))
+ print '"%s"' % '" "'.join(j.render(args))
elif isinstance(j, Jobs.PipedJob):
for c in j.commands:
- print '"%s" %c' % ('" "'.join(c.render(argv)),
+ print '"%s" %c' % ('" "'.join(c.render(args)),
"| "[c is j.commands[-1]])
elif not isinstance(j, JobList):
raise ValueError,'Encountered unknown job.'
@@ -115,7 +115,7 @@ class Driver(object):
for j in jobs.iterjobs():
if isinstance(j, Jobs.Command):
- cmd_args = j.render(argv)
+ cmd_args = j.render(args)
res = os.spawnvp(os.P_WAIT, cmd_args[0], cmd_args)
if res:
sys.exit(res)