This is an archive of the discontinued LLVM Phabricator instance.

[FileCollector] Add a VFS that records FS accesses using the FileCollector
ClosedPublic

Authored by arphaman on Jul 29 2019, 11:21 AM.

Details

Summary

This patch adds a VFS that can be overlaid on top of another VFS to record file system accesses using the FileCollector. This can help to gather files that are needed for reproducers.

Diff Detail

Event Timeline

arphaman created this revision.Jul 29 2019, 11:21 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 29 2019, 11:21 AM
JDevlieghere accepted this revision.Jul 29 2019, 11:30 AM

Interesting approach!

LGTM modulo my comment.

llvm/unittests/Support/FileCollectorTest.cpp
212

Maybe add one more test that ensures we don't record files that don't exist?

This revision is now accepted and ready to land.Jul 29 2019, 11:30 AM
arphaman marked an inline comment as done.Jul 29 2019, 4:37 PM
This revision was automatically updated to reflect the committed changes.