remove memory symbol from export

This commit is contained in:
NikVolf
2018-02-04 22:12:34 +03:00
parent 4860b2f9a8
commit d217c1eae0
2 changed files with 2 additions and 3 deletions

View File

@ -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");
}

View File

@ -6,7 +6,6 @@ extern crate byteorder;
pub static CREATE_SYMBOL: &'static str = "deploy";
pub static CALL_SYMBOL: &'static str = "call";
pub static MEMORY_SYMBOL: &'static str = "memory";
pub mod rules;