Remove unnecessary parts of run_fat_lto signature

Fat LTO merges into one module, so only return one module.
This commit is contained in:
Nikita Popov 2018-12-03 20:50:39 +01:00
parent bdbee6311b
commit bc2db43b9e
4 changed files with 12 additions and 19 deletions

View file

@ -179,10 +179,9 @@ impl WriteBackendMethods for LlvmCodegenBackend {
fn run_fat_lto(
cgcx: &CodegenContext<Self>,
modules: Vec<ModuleCodegen<Self::Module>>,
cached_modules: Vec<(SerializedModule<Self::ModuleBuffer>, WorkProduct)>,
timeline: &mut Timeline
) -> Result<(Vec<LtoModuleCodegen<Self>>, Vec<WorkProduct>), FatalError> {
back::lto::run_fat(cgcx, modules, cached_modules, timeline)
) -> Result<LtoModuleCodegen<Self>, FatalError> {
back::lto::run_fat(cgcx, modules, timeline)
}
fn run_thin_lto(
cgcx: &CodegenContext<Self>,