llvm-link: Factor out loop over input files, NFC
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Wed, 22 Apr 2015 04:08:22 +0000 (04:08 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Wed, 22 Apr 2015 04:08:22 +0000 (04:08 +0000)
commitd9443d717dbb3ec01ae8441dd70c2a077a7b5c09
treed94c60b9b9d7db880bf7c8af57d42c36e64a6056
parent0b67fe729322ef415ee59a87619795136a1def4f
llvm-link: Factor out loop over input files, NFC

Factor the loop for linking input files together into a combined module
into a separate function.  This is in preparation for an upcoming patch
that runs the logic twice.

Patch by Luqman Aden!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@235472 91177308-0d34-0410-b5e6-96231b3b80d8
tools/llvm-link/llvm-link.cpp