[lld-macho] Implement -object_path_lto
authorJez Ng <jezng@fb.com>
Thu, 3 Dec 2020 04:34:17 +0000 (20:34 -0800)
committerJez Ng <jezng@fb.com>
Thu, 10 Dec 2020 23:57:51 +0000 (15:57 -0800)
commit95831a56d092c563b03167ece592be301a2a0081
treef272edc4057d72dfeab2ab0b857b8e32810a22b6
parentdd1aa4fdd82bc4b33e9661eda6039760408501d9
[lld-macho] Implement -object_path_lto

This makes it possible for STABS entries to reference the debug info
contained in the LTO-compiled output.

I'm not sure how to test the file mtime within llvm-lit -- GNU and BSD
`stat` take different command-line arguments. I've omitted the check for
now.

Reviewed By: clayborg

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