[lld-macho] Handle TAPI and regular re-exports uniformly
authorJez Ng <jezng@fb.com>
Thu, 13 Aug 2020 20:48:47 +0000 (13:48 -0700)
committerJez Ng <jezng@fb.com>
Thu, 27 Aug 2020 02:20:48 +0000 (19:20 -0700)
commit7394460d8759be5afc3322a2b8cab5e6865e431a
treec4b0565583c7625d85852566cd1d5bfc4a898ed7
parent6336c042f66baa32b8f731a2d4edc1c1d07abe7d
[lld-macho] Handle TAPI and regular re-exports uniformly

The re-exports list in a TAPI document can either refer to other inlined
TAPI documents, or to on-disk files (which may themselves be TBD or
regular files.) Similarly, the re-exports of a regular dylib can refer
to a TBD file.

Differential Revision: https://reviews.llvm.org/D85404
13 files changed:
lld/MachO/CMakeLists.txt
lld/MachO/Config.h
lld/MachO/Driver.cpp
lld/MachO/DriverUtils.cpp [new file with mode: 0644]
lld/MachO/DriverUtils.h [new file with mode: 0644]
lld/MachO/InputFiles.cpp
lld/test/MachO/Inputs/MacOSX.sdk/usr/lib/libc++.tbd
lld/test/MachO/Inputs/MacOSX.sdk/usr/lib/libc++abi.tbd [new file with mode: 0644]
lld/test/MachO/Inputs/iPhoneSimulator.sdk/usr/lib/libSystem.tbd
lld/test/MachO/invalid/stub-link.s
lld/test/MachO/reexport-stub.s
lld/test/MachO/stub-link.s
lld/test/MachO/sub-library.s