start function

This commit is contained in:
NikVolf committed 2018-02-01 15:16:19 +03:00
1 parent f2eaaf391e
commit c216d98b7e
2 files changed
+10 -7

No files matched your search

+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() {