Skip to content

Commit

Permalink
Merge pull request #133 from wasmx/cli-translator
Browse files Browse the repository at this point in the history
Mark repack/snip/dropnames as translator in CLI
  • Loading branch information
axic authored Jul 23, 2019
2 parents 6f8ad11 + 21999e2 commit f5095c1
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions chisel/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -262,9 +262,18 @@ fn execute_module(context: &ModuleContext, module: &mut Module) -> bool {
Err("deployer: Invalid preset")
}
}
"repack" => translate_module(module, &Repack::new()),
"snip" => translate_module(module, &Snip::new()),
"dropnames" => translate_module(module, &DropSection::NamesSection),
"repack" => {
is_translator = true;
translate_module(module, &Repack::new())
}
"snip" => {
is_translator = true;
translate_module(module, &Snip::new())
}
"dropnames" => {
is_translator = true;
translate_module(module, &DropSection::NamesSection)
}
_ => Err("Module Not Found"),
};

Expand Down

0 comments on commit f5095c1

Please sign in to comment.