mirror of
https://github.com/pezkuwichain/wasm-instrument.git
synced 2026-11-07 19:31:12 +00:00
start function
This commit is contained in:
1 parent
f2eaaf391e
commit
c216d98b7e
2 files changed
+10
-7
No files matched your search
@@ -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() {
|
||||
|
||||
Reference in new issue
Block a user