9 #ifndef LLVM_SUPPORT_FILE_COLLECTOR_H 10 #define LLVM_SUPPORT_FILE_COLLECTOR_H 38 std::error_code
copyFiles(
bool StopOnError =
true);
44 std::shared_ptr<FileCollector>
Collector);
83 #endif // LLVM_SUPPORT_FILE_COLLECTOR_H *ViewGraph Emit a dot run run gv on the postscript file
This class represents lattice values for constants.
StringMap< std::string > SymlinkMap
Caches RealPath calls when resolving symlinks.
std::error_code copyFiles(bool StopOnError=true)
Copy the files into the root directory.
Collects files into a directory and generates a mapping that can be used by the VFS.
Twine - A lightweight data structure for efficiently representing the concatenation of temporary valu...
std::string OverlayRoot
The root directory where the VFS overlay lives.
LLVM_NODISCARD bool empty() const
empty - Check if the string is empty.
StringSet Seen
Tracks already seen files so they can be skipped.
FileCollector(std::string Root, std::string OverlayRoot)
std::error_code writeMapping(StringRef mapping_file)
Write the yaml mapping (for the VFS) to the given file.
void addFileMapping(StringRef VirtualPath, StringRef RealPath)
vfs::YAMLVFSWriter VFSWriter
The yaml mapping writer.
void addFile(const Twine &file)
std::string Root
The root directory where files are copied.
std::pair< typename base::iterator, bool > insert(StringRef Key)
A smart pointer to a reference-counted object that inherits from RefCountedBase or ThreadSafeRefCount...
static IntrusiveRefCntPtr< vfs::FileSystem > createCollectorVFS(IntrusiveRefCntPtr< vfs::FileSystem > BaseFS, std::shared_ptr< FileCollector > Collector)
Create a VFS that collects all the paths that might be looked at by the file system accesses...
Defines the virtual file system interface vfs::FileSystem.
StringSet - A wrapper for StringMap that provides set-like functionality.
StringRef - Represent a constant reference to a string, i.e.
Register Usage Information Collector
std::mutex Mutex
Synchronizes adding files.