diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-12-18 08:43:59 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-12-18 16:06:21 +1100 |
| commit | 7c656bc05bdb39884bdc5e87b2ed870233289591 (patch) | |
| tree | 86249619b9aa1fb5608d8fb878aef6fc610079aa /compiler/rustc_codegen_gcc | |
| parent | dea752e53d2f13e4ce65d68a75f6164a1fa4cbae (diff) | |
| download | rust-7c656bc05bdb39884bdc5e87b2ed870233289591.tar.gz rust-7c656bc05bdb39884bdc5e87b2ed870233289591.zip | |
Rename `CodegenContext::create_diag_handler` as `CodegenContext::create_dcx`.
Diffstat (limited to 'compiler/rustc_codegen_gcc')
| -rw-r--r-- | compiler/rustc_codegen_gcc/src/back/lto.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_gcc/src/back/lto.rs b/compiler/rustc_codegen_gcc/src/back/lto.rs index 289b93fab87..ee8da7c6cb7 100644 --- a/compiler/rustc_codegen_gcc/src/back/lto.rs +++ b/compiler/rustc_codegen_gcc/src/back/lto.rs @@ -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<_>>();*/ |
