mirror of
https://github.com/pezkuwichain/wasm-instrument.git
synced 2026-06-17 05:21:03 +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 clap::{App, Arg};
|
||||||
use parity_wasm::elements;
|
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)]
|
#[derive(Debug)]
|
||||||
pub enum Error {
|
pub enum Error {
|
||||||
@@ -147,7 +147,7 @@ fn main() {
|
|||||||
if !matches.is_present("skip_optimization") {
|
if !matches.is_present("skip_optimization") {
|
||||||
wasm_utils::optimize(
|
wasm_utils::optimize(
|
||||||
&mut module,
|
&mut module,
|
||||||
vec![CALL_SYMBOL, MEMORY_SYMBOL]
|
vec![CALL_SYMBOL]
|
||||||
).expect("Optimizer to finish without errors");
|
).expect("Optimizer to finish without errors");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,6 @@ extern crate byteorder;
|
|||||||
|
|
||||||
pub static CREATE_SYMBOL: &'static str = "deploy";
|
pub static CREATE_SYMBOL: &'static str = "deploy";
|
||||||
pub static CALL_SYMBOL: &'static str = "call";
|
pub static CALL_SYMBOL: &'static str = "call";
|
||||||
pub static MEMORY_SYMBOL: &'static str = "memory";
|
|
||||||
|
|
||||||
pub mod rules;
|
pub mod rules;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user