Change CodeGen to use a diagnostic consumer (#5847)

We've been trying to have errors/warnings all go through the diagnostics
consumers instead of straight to stderr.
This commit is contained in:
Jon Ross-Perkins
2025-07-24 21:44:44 +00:00
committed by GitHub
parent 59619fa8eb
commit d599023c19
6 changed files with 35 additions and 16 deletions
+1 -2
View File
@@ -741,8 +741,7 @@ auto CompilationUnit::PostCompile() -> void {
auto CompilationUnit::RunCodeGenHelper() -> bool {
std::optional<CodeGen> codegen =
CodeGen::Make(module_.get(), options_->codegen_options.target,
driver_env_->error_stream);
CodeGen::Make(module_.get(), options_->codegen_options.target, consumer_);
if (!codegen) {
return false;
}