[lld-macho][nfc] Decouple tapi-link.s test from libSystem
authorJez Ng <jezng@fb.com>
Fri, 4 Mar 2022 00:48:34 +0000 (19:48 -0500)
committerJez Ng <jezng@fb.com>
Fri, 4 Mar 2022 00:48:59 +0000 (19:48 -0500)
commit070af48d13713493b43661515101bad532146d24
treedca14a5eebfedc77b62cd1053cea3d93b8ce98d1
parent2954f5b3f1c3ffeaff233c58bdd29114ee66f7ba
[lld-macho][nfc] Decouple tapi-link.s test from libSystem

If we fix https://github.com/llvm/llvm-project/issues/54184, we will end
up including libSystem in every %lld invocation, which would break
tapi-link.s as it assumes that libSystem isn't directly linked (instead
it goes through libReexportSystem).

Let's remove this unnecessary coupling, as well as use `split-file`
instead of having a separate file under `Inputs`.

Reviewed By: #lld-macho, oontvoo

Differential Revision: https://reviews.llvm.org/D120939
lld/test/MachO/Inputs/libReexportSystem.tbd [deleted file]
lld/test/MachO/tapi-link.s