diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-01-07 18:40:45 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-01-07 18:40:45 +0000 |
commit | db439909091c5828ec229df6b31328e1fd5f67f1 (patch) | |
tree | 7ddf6d23df322800da367cc460bac1a6e447082a /tools/ccc/ccclib/Driver.py | |
parent | e4f039e01e797a38bc97bf22aff9832ecd18ff5f (diff) |
ccc: Change Command to take list of strings for argv instead of Arg
instances; this just complicated things and doesn't seem to provide
any benefit.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@61869 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/ccc/ccclib/Driver.py')
-rw-r--r-- | tools/ccc/ccclib/Driver.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tools/ccc/ccclib/Driver.py b/tools/ccc/ccclib/Driver.py index a8aab6cd26..83a814eb48 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(args)) + print '"%s"' % '" "'.join(j.getArgv()) elif isinstance(j, Jobs.PipedJob): for c in j.commands: - print '"%s" %c' % ('" "'.join(c.render(args)), + print '"%s" %c' % ('" "'.join(c.getArgv()), "| "[c is j.commands[-1]]) elif not isinstance(j, JobList): raise ValueError,'Encountered unknown job.' @@ -115,8 +115,7 @@ class Driver(object): for j in jobs.iterjobs(): if isinstance(j, Jobs.Command): - cmd_args = j.render(args) - res = os.spawnvp(os.P_WAIT, cmd_args[0], cmd_args) + res = os.spawnvp(os.P_WAIT, j.executable, j.getArgv()) if res: sys.exit(res) elif isinstance(j, Jobs.PipedJob): @@ -632,7 +631,8 @@ class Driver(object): fd,filename = tempfile.mkstemp(suffix='.'+phase.type.tempSuffix) output = Arguments.DerivedArg(filename) - tool.constructJob(phase, arch, jobList, inputs, output, phase.type, forwardArgs) + tool.constructJob(phase, arch, jobList, inputs, output, phase.type, + forwardArgs, args) return InputInfo(output, phase.type, baseInput) |