mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-04 11:41:06 +01:00
Switch Driver back to parameters for construction (#4849)
This is for more complex construction, see #4846
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user