Merge modules and cached_modules for fat LTO

The modules vec can already contain serialized modules and there is no
need to distinguish between cached and non-cached cgus at LTO time.
This commit is contained in:
bjorn3
2025-07-04 07:42:28 +00:00
parent e05ab47e6c
commit 112799e637
6 changed files with 14 additions and 33 deletions

View File

@@ -359,14 +359,13 @@ impl WriteBackendMethods for GccCodegenBackend {
fn run_and_optimize_fat_lto(
cgcx: &CodegenContext<Self>,
modules: Vec<FatLtoInput<Self>>,
cached_modules: Vec<(SerializedModule<Self::ModuleBuffer>, WorkProduct)>,
diff_fncs: Vec<AutoDiffItem>,
) -> Result<ModuleCodegen<Self::Module>, FatalError> {
if !diff_fncs.is_empty() {
unimplemented!();
}
back::lto::run_fat(cgcx, modules, cached_modules)
back::lto::run_fat(cgcx, modules)
}
fn run_thin_lto(