[dsymutil] Avoid copying swiftinterfaces from the SDK into the dsym bundle
authorAdrian Prantl <aprantl@apple.com>
Wed, 26 Feb 2020 17:35:00 +0000 (09:35 -0800)
committerAdrian Prantl <aprantl@apple.com>
Wed, 26 Feb 2020 20:22:50 +0000 (12:22 -0800)
commit22cb36c86b80fb9148fb08b1d384cd84bb9548d5
tree47797978d1da5e47f0eee9758180435f7c4481e3
parent85b641c27aecee637d3f7ab25915f47438f55848
[dsymutil] Avoid copying swiftinterfaces from the SDK into the dsym bundle

This patch fixes a bug that would cause dsymutil to collect
.swiftinterface files for the Swift stdlib and other SDK
modules. There is no advantage in copying these since they should be
loaded from the ones bundled with LLDB's embedded Swift compiler
instead and copying them will cause LLDB to recompile them from source
instead of loading their prebuilt cached counterparts in the SDK.

rdar://problem/57463247

Differential Revisions: https://reviews.llvm.org/D75196
llvm/include/llvm/DWARFLinker/DWARFLinkerCompileUnit.h
llvm/lib/DWARFLinker/DWARFLinker.cpp
llvm/lib/DWARFLinker/DWARFLinkerCompileUnit.cpp
llvm/test/tools/dsymutil/Inputs/swift-interface.ll [deleted file]
llvm/test/tools/dsymutil/Inputs/swift-interface.s [new file with mode: 0644]
llvm/test/tools/dsymutil/X86/swift-interface.test