Skip to content

Commit bf3266d

Browse files
committed
[VFS] Add getter for mapping entries.
When generating a reproducer in LLDB we build up the mapping but don't immediately copy over the files on the file system. Rather than keeping a separate data structure with real and virtual paths, we might as well reuse the entries already stored in the YAMLVFSWriter to lazily copy over the files when needed. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@351266 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent 5681311 commit bf3266d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

include/llvm/Support/VirtualFileSystem.h

+2
Original file line numberDiff line numberDiff line change
@@ -753,6 +753,8 @@ class YAMLVFSWriter {
753753
OverlayDir.assign(OverlayDirectory.str());
754754
}
755755

756+
const std::vector<YAMLVFSEntry> &getMappings() const { return Mappings; }
757+
756758
void write(llvm::raw_ostream &OS);
757759
};
758760

0 commit comments

Comments
 (0)