[VFS] Add back setFallthrough for downstream users

This fixes lldb's build. We can remove this in the future if we want but
for now this will be nicer to existing consumers.
This commit is contained in:
Ben Barham authored and Keith Smiley committed 2022-02-03 13:46:18 -08:00
1 parent e765e0bc8e
commit a5cff6af1d
2 files changed
+12

No files matched your search

+8
View File
@@ -1363,6 +1363,14 @@ StringRef RedirectingFileSystem::getExternalContentsPrefixDir() const {
return ExternalContentsPrefixDir;
}
void RedirectingFileSystem::setFallthrough(bool Fallthrough) {
if (Fallthrough) {
Redirection = RedirectingFileSystem::RedirectKind::Fallthrough;
} else {
Redirection = RedirectingFileSystem::RedirectKind::RedirectOnly;
}
}
void RedirectingFileSystem::setRedirection(
RedirectingFileSystem::RedirectKind Kind) {
Redirection = Kind;