[llvm] r351266 - [VFS] Add getter for mapping entries.
Jonas Devlieghere via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 15 14:36:56 PST 2019
Author: jdevlieghere
Date: Tue Jan 15 14:36:56 2019
New Revision: 351266
URL: http://llvm.org/viewvc/llvm-project?rev=351266&view=rev
Log:
[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.
Modified:
llvm/trunk/include/llvm/Support/VirtualFileSystem.h
Modified: llvm/trunk/include/llvm/Support/VirtualFileSystem.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/VirtualFileSystem.h?rev=351266&r1=351265&r2=351266&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/VirtualFileSystem.h (original)
+++ llvm/trunk/include/llvm/Support/VirtualFileSystem.h Tue Jan 15 14:36:56 2019
@@ -753,6 +753,8 @@ public:
OverlayDir.assign(OverlayDirectory.str());
}
+ const std::vector<YAMLVFSEntry> &getMappings() const { return Mappings; }
+
void write(llvm::raw_ostream &OS);
};
More information about the llvm-commits
mailing list