[dsymutil] Implement the --threads option
authorJonas Devlieghere <jonas@devlieghere.com>
Tue, 31 Oct 2017 13:54:15 +0000 (13:54 +0000)
committerJonas Devlieghere <jonas@devlieghere.com>
Tue, 31 Oct 2017 13:54:15 +0000 (13:54 +0000)
commit2dd9848304c94b91399ad56189aa373fa9aebde6
treeb95e258ce9746005e6b61e5adccbaf93b7ef5e66
parent0cf24ed9aaacfcd65221e882359307e5b8f320b8
[dsymutil] Implement the --threads option

This patch adds the --threads option to dsymutil to process
architectures in parallel. The feature is already present in the version
distributed with Xcode, but was not yet upstreamed.

This is NFC as far as the linking behavior is concerned. As threads are
used automatically, the current tests cover the change in
implementation.

Differential revision: https://reviews.llvm.org/D39355

llvm-svn: 316999
llvm/test/tools/dsymutil/cmdline.test [new file with mode: 0644]
llvm/tools/dsymutil/DwarfLinker.cpp
llvm/tools/dsymutil/dsymutil.cpp