Add an -object-path-prefix option to dsymutil
authorAdrian Prantl <aprantl@apple.com>
Wed, 18 Mar 2020 22:31:39 +0000 (15:31 -0700)
committerAdrian Prantl <aprantl@apple.com>
Wed, 25 Mar 2020 00:13:42 +0000 (17:13 -0700)
commited8ad6ec1562a980d8d6a8fea29703030acc125b
tree8051edff0f5fdb8cb5a14c3d97dbb77b519cdc56
parent39c55cef21b4ca9863edf82b6d9995fb1e28c37d
Add an -object-path-prefix option to dsymutil

to remap object file paths (but no source paths) before
processing. This is meant to be used for Clang objects where the
module cache location was remapped using ``-fdebug-prefix-map``; to
help dsymutil find the Clang module cache.

<rdar://problem/55685132>

Differential Revision: https://reviews.llvm.org/D76391
llvm/docs/CommandGuide/dsymutil.rst
llvm/include/llvm/DWARFLinker/DWARFLinker.h
llvm/lib/DWARFLinker/DWARFLinker.cpp
llvm/test/tools/dsymutil/X86/object-prefix-path.test [new file with mode: 0644]
llvm/test/tools/dsymutil/cmdline.test
llvm/tools/dsymutil/DwarfLinkerForBinary.cpp
llvm/tools/dsymutil/LinkUtils.h
llvm/tools/dsymutil/Options.td
llvm/tools/dsymutil/dsymutil.cpp