]> granicus.if.org Git - clang/commit
Move the execution code from Compilation::ExecuteCommand to Command::Execute
authorHans Wennborg <hans@hanshq.net>
Thu, 12 Sep 2013 18:35:08 +0000 (18:35 +0000)
committerHans Wennborg <hans@hanshq.net>
Thu, 12 Sep 2013 18:35:08 +0000 (18:35 +0000)
commitaaaa2a1889fe882e7e41048e3b298ca594454eb1
tree67187f185f336ad72757f7bd6dc3cc1cfe5a0038
parentfc3389701ead32709ba84825e4c06651065da2c0
Move the execution code from Compilation::ExecuteCommand to Command::Execute

I think it makes sense that a Command knows how to execute itself.

There's no functionality change but i rewrote the code to avoid the manual
memory management of Argv.

My motivation for this is that I plan to subclass Command to build fall-back
functionality into clang-cl.

Differential Revision: http://llvm-reviews.chandlerc.com/D1654

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@190621 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Driver/Job.h
lib/Driver/Compilation.cpp
lib/Driver/Job.cpp