Rename run_lto_pass_manager to optimize_fat and remove thin parameter

This commit is contained in:
bjorn3 2022-04-30 20:50:17 +02:00
parent 76d4862fdd
commit 336bb0afea
3 changed files with 18 additions and 20 deletions

View file

@ -229,6 +229,11 @@ impl WriteBackendMethods for GccCodegenBackend {
Ok(())
}
fn optimize_fat(_cgcx: &CodegenContext<Self>, _module: &ModuleCodegen<Self::Module>, _config: &ModuleConfig) -> Result<(), FatalError> {
// TODO(antoyo)
Ok(())
}
unsafe fn optimize_thin(_cgcx: &CodegenContext<Self>, _thin: &mut ThinModule<Self>) -> Result<ModuleCodegen<Self::Module>, FatalError> {
unimplemented!();
}
@ -245,11 +250,6 @@ impl WriteBackendMethods for GccCodegenBackend {
unimplemented!();
}
fn run_lto_pass_manager(_cgcx: &CodegenContext<Self>, _module: &ModuleCodegen<Self::Module>, _config: &ModuleConfig, _thin: bool) -> Result<(), FatalError> {
// TODO(antoyo)
Ok(())
}
fn run_link(cgcx: &CodegenContext<Self>, diag_handler: &Handler, modules: Vec<ModuleCodegen<Self::Module>>) -> Result<ModuleCodegen<Self::Module>, FatalError> {
back::write::link(cgcx, diag_handler, modules)
}