Remove config parameter of optimize_fat and avoid interior mutability for module

This commit is contained in:
bjorn3 2022-04-30 20:58:42 +02:00
parent e2f645dd7f
commit c00ecf5d5d

View file

@ -229,7 +229,7 @@ impl WriteBackendMethods for GccCodegenBackend {
Ok(())
}
fn optimize_fat(_cgcx: &CodegenContext<Self>, _module: &ModuleCodegen<Self::Module>, _config: &ModuleConfig) -> Result<(), FatalError> {
fn optimize_fat(_cgcx: &CodegenContext<Self>, _module: &mut ModuleCodegen<Self::Module>) -> Result<(), FatalError> {
// TODO(antoyo)
Ok(())
}