mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-06 07:34:45 +01:00
Propagate llvm::vfs::FileSystem from driver_env to Clang (#4537)
As discussed in #4530 . This required switching to using `llvm::IntrusiveRefCntPtr` in a number of places. --------- Co-authored-by: Josh L <josh11b@users.noreply.github.com>
This commit is contained in:
@@ -10,8 +10,9 @@ namespace Carbon::Testing {
|
||||
|
||||
// Prepares the VFS with prelude files from the real filesystem. Primarily for
|
||||
// tests.
|
||||
auto AddPreludeFilesToVfs(InstallPaths install_paths,
|
||||
llvm::vfs::InMemoryFileSystem* vfs) -> void {
|
||||
auto AddPreludeFilesToVfs(
|
||||
InstallPaths install_paths,
|
||||
llvm::IntrusiveRefCntPtr<llvm::vfs::InMemoryFileSystem>& vfs) -> void {
|
||||
// Load the prelude into the test VFS.
|
||||
auto real_fs = llvm::vfs::getRealFileSystem();
|
||||
auto prelude = install_paths.ReadPreludeManifest();
|
||||
|
||||
Reference in New Issue
Block a user