Refactor argument serialization logic when executing process. NFC.
authorRafael Espindola <rafael.espindola@gmail.com>
Mon, 25 Aug 2014 22:15:06 +0000 (22:15 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Mon, 25 Aug 2014 22:15:06 +0000 (22:15 +0000)
commit749c73842db6e8e45059c5dad2bbc72f08e51fa0
tree67dcbadfb7e230abc18cf6b2f7adaee3d22dac79
parent670885e56e27e90cd86fd1a5245226bfe7fb8ac7
Refactor argument serialization logic when executing process. NFC.

This patch refactors the argument serialization logic used in the Execute
function, used to launch new Windows processes. There is a critical step that
joins char** arguments into a single string, building the command line used to
launch the new process, and the readability of this code is improved if this
part is refactored in its own helper function.

Patch by Rafael Auler!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@216411 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Support/Windows/Program.inc