aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/VirtualFileSystem.cpp
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2020-08-31 15:13:49 -0700
committerJonas Devlieghere <jonas@devlieghere.com>2020-08-31 15:14:18 -0700
commit297f69afac58fc9dc13897857a5e70131c5adc85 (patch)
tree62fc03f64f9f2e27477322dc1e3ad14f3b0c3108 /llvm/lib/Support/VirtualFileSystem.cpp
parent867de151a52b6d0750485ac1cf9b3bc012ee51fd (diff)
downloadllvm-297f69afac58fc9dc13897857a5e70131c5adc85.zip
llvm-297f69afac58fc9dc13897857a5e70131c5adc85.tar.gz
llvm-297f69afac58fc9dc13897857a5e70131c5adc85.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.cpp11
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());