[PATCH] D79398: [WIP][dsymutil] Add reproducers to dsymutil
Jonas Devlieghere via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue May 5 01:34:34 PDT 2020
JDevlieghere created this revision.
JDevlieghere added reviewers: friss, aprantl, avl.
Herald added a subscriber: mgorny.
Herald added a project: LLVM.
JDevlieghere added a comment.
This needs tests and some polish but please let me know what you think of the general approach.
Add support for generating a dsymutil reproducer, which is a folder containing all the object files for linking. When `--gen-reproducer` is passed, dsymutil uses a `FileCollectorFileSystem` which keeps track of all the files used by dsymutil. These files are copied into a temporary directory when dsymutil exists. When this path is passed to `--use-reproducer`, dsymutil uses a RedirectingFileSystem that will use the files from the reproducer directory instead of the actual paths. This means you don't need to mess with the OSO path prefix.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D79398
Files:
llvm/tools/dsymutil/CMakeLists.txt
llvm/tools/dsymutil/Options.td
llvm/tools/dsymutil/Reproducer.cpp
llvm/tools/dsymutil/Reproducer.h
llvm/tools/dsymutil/dsymutil.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D79398.262020.patch
Type: text/x-patch
Size: 8149 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200505/6efb17ad/attachment.bin>
More information about the llvm-commits
mailing list