cranelift-module: document that finalize methods may not be relevant

This commit is contained in:
Philip Craig
2020-01-25 13:19:09 +10:00
committed by Benjamin Bouvier
parent 3c15f8f129
commit 51229c3f58
2 changed files with 12 additions and 0 deletions

View File

@@ -648,6 +648,9 @@ where
///
/// Use `get_finalized_function` and `get_finalized_data` to obtain the final
/// artifacts.
///
/// This method is not relevant for `Backend` implementations that do not provide
/// `Backend::FinalizedFunction` or `Backend::FinalizedData`.
pub fn finalize_definitions(&mut self) {
for func in self.functions_to_finalize.drain(..) {
let info = &self.contents.functions[func];