[lld-macho] Support --thinlto-jobs
authorJez Ng <jezng@fb.com>
Thu, 8 Apr 2021 16:14:47 +0000 (12:14 -0400)
committerJez Ng <jezng@fb.com>
Thu, 8 Apr 2021 16:21:01 +0000 (12:21 -0400)
commit050a7a27ca844a912e46cdfeed7a472847ad0bc9
tree1e20136d5bb9b38852f37a39c93ca5e29a73fbff
parent2690d4d45a63ecee224a0dce1a5fd557b140df51
[lld-macho] Support --thinlto-jobs

The test is loosely based off LLD-ELF's `thinlto.ll`. However, I
found that test questionable because the the -save_temps behavior it
checks for is identical regardless of whether we are running in single-
or multi-threaded mode. I tried writing a test based on `--time-trace`
but couldn't get it to run deterministically... so I've opted to just
skip checking that behavior for now.

Reviewed By: #lld-macho, gkm

Differential Revision: https://reviews.llvm.org/D99356
lld/MachO/Config.h
lld/MachO/Driver.cpp
lld/MachO/LTO.cpp
lld/MachO/Options.td
lld/test/MachO/thinlto-jobs.ll [new file with mode: 0644]