[dsymutil] Thread the VFS through dsymutil (NFC)
authorJonas Devlieghere <jonas@devlieghere.com>
Tue, 5 May 2020 03:19:15 +0000 (20:19 -0700)
committerJonas Devlieghere <jonas@devlieghere.com>
Tue, 5 May 2020 03:21:33 +0000 (20:21 -0700)
commit0be7acab1573accb2943673df5f1fc9331e196d0
tree3f3125377a71925681332625af43c95ead50d586
parent469c02d0581a4bd7539c7dd62063c29072b55852
[dsymutil] Thread the VFS through dsymutil (NFC)

This patch threads the virtual file system through dsymutil.

Currently there is no good way to find out exactly what files are
necessary in order to reproduce a dsymutil link, at least not without
knowledge of how dsymutil's internals.  My motivation for this change is
to add lightweight "reproducers" that automatically gather the input
object files through the FileCollectorFileSystem. The files together
with the YAML mapping will allow us to transparently reproduce a
dsymutil link, even without having to mess with the OSO path prefix.

Differential revision: https://reviews.llvm.org/D79376
llvm/tools/dsymutil/BinaryHolder.cpp
llvm/tools/dsymutil/BinaryHolder.h
llvm/tools/dsymutil/DebugMap.cpp
llvm/tools/dsymutil/DwarfLinkerForBinary.cpp
llvm/tools/dsymutil/LinkUtils.h
llvm/tools/dsymutil/MachODebugMapParser.cpp
llvm/tools/dsymutil/MachOUtils.cpp
llvm/tools/dsymutil/MachOUtils.h
llvm/tools/dsymutil/dsymutil.cpp
llvm/tools/dsymutil/dsymutil.h