mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 17:11:04 +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:
@@ -53,8 +53,8 @@ class DriverTest : public testing::Test {
|
||||
auto MakeTestFile(llvm::StringRef text,
|
||||
llvm::StringRef filename = "test_file.carbon")
|
||||
-> llvm::StringRef {
|
||||
fs_.addFile(filename, /*ModificationTime=*/0,
|
||||
llvm::MemoryBuffer::getMemBuffer(text));
|
||||
fs_->addFile(filename, /*ModificationTime=*/0,
|
||||
llvm::MemoryBuffer::getMemBuffer(text));
|
||||
return filename;
|
||||
}
|
||||
|
||||
@@ -91,7 +91,8 @@ class DriverTest : public testing::Test {
|
||||
});
|
||||
}
|
||||
|
||||
llvm::vfs::InMemoryFileSystem fs_;
|
||||
llvm::IntrusiveRefCntPtr<llvm::vfs::InMemoryFileSystem> fs_ =
|
||||
new llvm::vfs::InMemoryFileSystem;
|
||||
const InstallPaths installation_;
|
||||
TestRawOstream test_output_stream_;
|
||||
TestRawOstream test_error_stream_;
|
||||
|
||||
Reference in New Issue
Block a user