Browse Source

[module] Finalize definitions for the end-user

Closes https://github.com/bytecodealliance/cranelift/issues/1288 by
calling `module.finalize_definitions` whenever `module.finish` is
called.
pull/1019/head
Joshua Nelson 5 years ago
committed by Benjamin Bouvier
parent
commit
fcb0593796
  1. 3
      cranelift/module/src/module.rs

3
cranelift/module/src/module.rs

@ -714,7 +714,8 @@ where
/// Consume the module and return the resulting `Product`. Some `Backend` /// Consume the module and return the resulting `Product`. Some `Backend`
/// implementations may provide additional functionality available after /// implementations may provide additional functionality available after
/// a `Module` is complete. /// a `Module` is complete.
pub fn finish(self) -> B::Product { pub fn finish(mut self) -> B::Product {
self.finalize_definitions();
self.backend.finish() self.backend.finish()
} }
} }

Loading…
Cancel
Save