start function

This commit is contained in:
NikVolf
2018-02-01 15:16:19 +03:00
parent f2eaaf391e
commit c216d98b7e
2 changed files with 10 additions and 7 deletions
+3
View File
@@ -26,6 +26,9 @@ pub fn optimize(
}
}
// If there is start function in module, it should stary
module.start_section().map(|ss| stay.insert(Symbol::Function(ss as usize)));
// All symbols used in data/element segments are also should be preserved
let mut init_symbols = Vec::new();
if let Some(data_section) = module.data_section() {