mirror of
https://github.com/pezkuwichain/wasm-instrument.git
synced 2026-06-13 17:31:09 +00:00
remove memory symbol from export
This commit is contained in:
+2
-2
@@ -14,7 +14,7 @@ use std::path::PathBuf;
|
||||
use clap::{App, Arg};
|
||||
use parity_wasm::elements;
|
||||
|
||||
use wasm_utils::{CREATE_SYMBOL, CALL_SYMBOL, MEMORY_SYMBOL, ununderscore_funcs, externalize_mem};
|
||||
use wasm_utils::{CREATE_SYMBOL, CALL_SYMBOL, ununderscore_funcs, externalize_mem};
|
||||
|
||||
#[derive(Debug)]
|
||||
pub enum Error {
|
||||
@@ -147,7 +147,7 @@ fn main() {
|
||||
if !matches.is_present("skip_optimization") {
|
||||
wasm_utils::optimize(
|
||||
&mut module,
|
||||
vec![CALL_SYMBOL, MEMORY_SYMBOL]
|
||||
vec![CALL_SYMBOL]
|
||||
).expect("Optimizer to finish without errors");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user