Merge new_metadata into codegen_allocator

This commit is contained in:
bjorn3
2022-04-30 21:20:08 +02:00
parent fab72301d9
commit 78c65a52db
5 changed files with 15 additions and 29 deletions

View File

@@ -69,9 +69,7 @@ impl<B: WriteBackendMethods> LtoModuleCodegen<B> {
) -> Result<ModuleCodegen<B::Module>, FatalError> {
match self {
LtoModuleCodegen::Fat { mut module, .. } => {
{
B::optimize_fat(cgcx, &mut module)?;
}
B::optimize_fat(cgcx, &mut module)?;
Ok(module)
}
LtoModuleCodegen::Thin(thin) => B::optimize_thin(cgcx, thin),