diff options
author | Jonas Devlieghere <jonas@devlieghere.com> | 2020-08-31 15:13:49 -0700 |
---|---|---|
committer | Jonas Devlieghere <jonas@devlieghere.com> | 2020-09-02 22:00:00 -0700 |
commit | 3746906193c1be913fe60072de9d4feb80f9c461 (patch) | |
tree | af471785e13fc34476e9fc2682594b1c35423464 /llvm/lib/Support/VirtualFileSystem.cpp | |
parent | fa95e35593353810c1b26e3641451fa82089d792 (diff) | |
download | llvm-3746906193c1be913fe60072de9d4feb80f9c461.zip llvm-3746906193c1be913fe60072de9d4feb80f9c461.tar.gz llvm-3746906193c1be913fe60072de9d4feb80f9c461.tar.bz2 |
[lldb] Add reproducer verifier
Add a reproducer verifier that catches:
- Missing or invalid home directory
- Missing or invalid working directory
- Missing or invalid module/symbol paths
- Missing files from the VFS
The verifier is enabled by default during replay, but can be skipped by
passing --reproducer-no-verify.
Differential revision: https://reviews.llvm.org/D86497
Diffstat (limited to 'llvm/lib/Support/VirtualFileSystem.cpp')
-rw-r--r-- | llvm/lib/Support/VirtualFileSystem.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/llvm/lib/Support/VirtualFileSystem.cpp b/llvm/lib/Support/VirtualFileSystem.cpp index 5b757c9..bbde44c 100644 --- a/llvm/lib/Support/VirtualFileSystem.cpp +++ b/llvm/lib/Support/VirtualFileSystem.cpp @@ -1159,6 +1159,17 @@ StringRef RedirectingFileSystem::getExternalContentsPrefixDir() const { return ExternalContentsPrefixDir; } +void RedirectingFileSystem::setFallthrough(bool Fallthrough) { + IsFallthrough = Fallthrough; +} + +std::vector<StringRef> RedirectingFileSystem::getRoots() const { + std::vector<StringRef> R; + for (const auto &Root : Roots) + R.push_back(Root->getName()); + return R; +} + void RedirectingFileSystem::dump(raw_ostream &OS) const { for (const auto &Root : Roots) dumpEntry(OS, Root.get()); |