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