fix(clif-backend) Module::new does not use its argument.

The `Module::new` method requires an argument (`wasm: &[u8]`) that is
never used.

This patch removes the argument, and updates the code accordingly.
This commit is contained in:
Ivan Enderlin 2019-03-04 14:03:07 +01:00
parent 0c62693163
commit 5744f6896f
2 changed files with 2 additions and 2 deletions

View File

@ -44,7 +44,7 @@ impl Compiler for CraneliftCompiler {
let isa = get_isa();
let mut module = module::Module::new(wasm);
let mut module = module::Module::new();
let module_env = module_env::ModuleEnv::new(&mut module, &*isa);
let func_bodies = module_env.translate(wasm)?;

View File

@ -25,7 +25,7 @@ pub struct Module {
}
impl Module {
pub fn new(wasm: &[u8]) -> Self {
pub fn new() -> Self {
Self {
info: ModuleInfo {
memories: Map::new(),