1
Fork 0

Rename CodegenContext::create_diag_handler as CodegenContext::create_dcx.

This commit is contained in:
Nicholas Nethercote 2023-12-18 08:43:59 +11:00
parent dea752e53d
commit 7c656bc05b
4 changed files with 10 additions and 14 deletions

View file

@ -183,7 +183,7 @@ pub(crate) fn run_fat(
modules: Vec<FatLtoInput<GccCodegenBackend>>,
cached_modules: Vec<(SerializedModule<ModuleBuffer>, WorkProduct)>,
) -> Result<LtoModuleCodegen<GccCodegenBackend>, FatalError> {
let diag_handler = cgcx.create_diag_handler();
let diag_handler = cgcx.create_dcx();
let lto_data = prepare_lto(cgcx, &diag_handler)?;
/*let symbols_below_threshold =
lto_data.symbols_below_threshold.iter().map(|c| c.as_ptr()).collect::<Vec<_>>();*/