[VFS] Add getter for mapping entries.
authorJonas Devlieghere <jonas@devlieghere.com>
Tue, 15 Jan 2019 22:36:56 +0000 (22:36 +0000)
committerJonas Devlieghere <jonas@devlieghere.com>
Tue, 15 Jan 2019 22:36:56 +0000 (22:36 +0000)
commit7a16862745773a258225c0249fb10bd6e306b572
treef04b2e5a8b9ca8d2aaefac99c4b91c1b4eaa65a5
parent1a0ce65ad39b44b795d2a0daca8fd262da7b990d
[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.

llvm-svn: 351266
llvm/include/llvm/Support/VirtualFileSystem.h