This is an archive of the discontinued LLVM Phabricator instance.

[dsymutil] Thread the VFS through dsymutil (NFC)
ClosedPublic

Authored by JDevlieghere on May 4 2020, 4:28 PM.

Details

Summary

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 works. My goal is add lightweight reproducer functionality that automatically gather the input object files using the FileCollectorFileSystem. We can then also use the VFS mapping to reproduce a dsymutil link without having to mess with the OSO prefix path.

Diff Detail

Event Timeline

JDevlieghere created this revision.May 4 2020, 4:28 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 4 2020, 4:28 PM

Remove spurious line which I used for testing.

friss accepted this revision.May 4 2020, 4:48 PM

I don't know much about the VFS itself, but those ,technical changes look good

This revision is now accepted and ready to land.May 4 2020, 4:48 PM
This revision was automatically updated to reflect the committed changes.
aprantl added inline comments.May 5 2020, 9:33 AM
llvm/tools/dsymutil/BinaryHolder.h
140

Perhaps add ... which is used for generating reproducers.