diff options
author | Ben Barham <ben_barham@apple.com> | 2022-02-03 13:35:16 -0800 |
---|---|---|
committer | Keith Smiley <keithbsmiley@gmail.com> | 2022-02-03 13:46:18 -0800 |
commit | a5cff6af1d342e1523daae26231aeccb0ca17e39 (patch) | |
tree | 118be51175d2fe2acf46c7f7bd2227185c6df61f /llvm/lib/Support/VirtualFileSystem.cpp | |
parent | e765e0bc8ed06ebb186a9905227273517f0b7240 (diff) | |
download | llvm-a5cff6af1d342e1523daae26231aeccb0ca17e39.zip llvm-a5cff6af1d342e1523daae26231aeccb0ca17e39.tar.gz llvm-a5cff6af1d342e1523daae26231aeccb0ca17e39.tar.bz2 |
[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.
Diffstat (limited to 'llvm/lib/Support/VirtualFileSystem.cpp')
-rw-r--r-- | llvm/lib/Support/VirtualFileSystem.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/lib/Support/VirtualFileSystem.cpp b/llvm/lib/Support/VirtualFileSystem.cpp index 8573c3a..4915168 100644 --- a/llvm/lib/Support/VirtualFileSystem.cpp +++ b/llvm/lib/Support/VirtualFileSystem.cpp @@ -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; |