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
@@ -23,11 +23,8 @@ class CompileBenchmark {
public:
CompileBenchmark()
: installation_(InstallPaths::MakeForBazelRunfiles(GetExePath())),
driver_({.fs = fs_,
.installation = &installation_,
.input_stream = nullptr,
.output_stream = &llvm::outs(),
.error_stream = &llvm::errs()}) {
driver_(fs_, &installation_, /*input_stream=*/nullptr, &llvm::outs(),
&llvm::errs()) {
AddPreludeFilesToVfs(installation_, fs_);
}