Switch Driver back to parameters for construction (#4849)

This is for more complex construction, see #4846
This commit is contained in:
Jon Ross-Perkins
2025-01-27 23:48:44 +00:00
committed by GitHub
parent 8727445656
commit 0d0e202ce8
10 changed files with 36 additions and 45 deletions
+2 -5
View File
@@ -147,11 +147,8 @@ auto TestCompile(llvm::StringRef source) -> bool {
new llvm::vfs::InMemoryFileSystem;
InstallPaths installation(
InstallPaths::MakeForBazelRunfiles(Testing::GetExePath()));
Driver driver({.fs = fs,
.installation = &installation,
.input_stream = nullptr,
.output_stream = &llvm::outs(),
.error_stream = &llvm::errs()});
Driver driver(fs, &installation, /*input_stream=*/nullptr, &llvm::outs(),
&llvm::errs());
AddPreludeFilesToVfs(installation, fs);