Remove finalize_* from the Backend trait

Instead let the `finish` method perform finalization
This commit is contained in:
bjorn3
2020-09-30 14:20:39 +02:00
parent 59f95083b1
commit 405b9e2875
4 changed files with 142 additions and 164 deletions

View File

@@ -400,24 +400,6 @@ impl Backend for ObjectBackend {
Ok(ObjectCompiledData)
}
fn finalize_function(
&mut self,
_id: FuncId,
_func: &ObjectCompiledFunction,
_contents: &ModuleContents<Self>,
) {
// Nothing to do.
}
fn finalize_data(
&mut self,
_id: DataId,
_data: &ObjectCompiledData,
_contents: &ModuleContents<Self>,
) {
// Nothing to do.
}
fn finish(
mut self,
_names: HashMap<String, FuncOrDataId>,