Reland "[llvm][dsymutil] Add DW_TAG_imported_declaration to accelerator table"
authorMichael Buch <michaelbuch12@gmail.com>
Fri, 10 Feb 2023 12:43:42 +0000 (12:43 +0000)
committerMichael Buch <michaelbuch12@gmail.com>
Fri, 10 Feb 2023 17:19:07 +0000 (17:19 +0000)
commitb8ef007fca1d959947d65853f56e407560d7699d
tree642607994424479e8251887821d02fc62793ae47
parent9497680067cc5a2e7d4e0bf657b23d57c06e5e97
Reland "[llvm][dsymutil] Add DW_TAG_imported_declaration to accelerator table"

This relands the commit previously reverted in
`8570bee53a8ce0c5d04bc11f288e19a457474c4c` due to failures on linux.

The problem was that the test executable was built with absolute
OSO prefix paths. This re-commit adds a modified version of the
executable that strips the absolute OSO prefix paths and makes
sure the test appends the OSO prefix appropriately (via the appropriate
dsymutil flags).

Differential Revision: https://reviews.llvm.org/D143458
llvm/lib/DWARFLinker/DWARFLinker.cpp
llvm/test/tools/dsymutil/ARM/accel-imported-declarations.test [new file with mode: 0644]
llvm/test/tools/dsymutil/Inputs/accel-imported-declaration.cpp [new file with mode: 0644]
llvm/test/tools/dsymutil/Inputs/accel-imported-declaration.macho-arm64 [new file with mode: 0755]
llvm/test/tools/dsymutil/Inputs/accel-imported-declaration.macho-arm64.o [new file with mode: 0644]