Rename wasmstandalone::StandaloneRuntime to wasmstandalone::Runtime.
This commit is contained in:
@@ -18,7 +18,7 @@ extern crate term;
|
||||
extern crate tempdir;
|
||||
|
||||
use cton_wasm::{translate_module, TranslationResult};
|
||||
use wasmstandalone::{StandaloneRuntime, compile_module, execute};
|
||||
use wasmstandalone::{compile_module, execute};
|
||||
use std::path::PathBuf;
|
||||
use wasmparser::{Parser, ParserState, WasmDecoder, SectionCode};
|
||||
use wasmtext::Writer;
|
||||
@@ -157,7 +157,7 @@ fn handle_module(args: &Args, path: PathBuf, name: &str, isa: &TargetIsa) -> Res
|
||||
|err| String::from(err.description()),
|
||||
)?;
|
||||
}
|
||||
let mut runtime = StandaloneRuntime::with_flags(isa.flags().clone());
|
||||
let mut runtime = wasmstandalone::Runtime::with_flags(isa.flags().clone());
|
||||
let translation = {
|
||||
match translate_module(&data, &mut runtime) {
|
||||
Ok(x) => x,
|
||||
@@ -320,7 +320,7 @@ fn pretty_print_translation(
|
||||
writer_wat: &mut Write,
|
||||
writer_cretonne: &mut Write,
|
||||
isa: &TargetIsa,
|
||||
runtime: &StandaloneRuntime,
|
||||
runtime: &wasmstandalone::Runtime,
|
||||
) -> Result<(), io::Error> {
|
||||
let mut terminal = term::stdout().unwrap();
|
||||
let mut parser = Parser::new(data);
|
||||
|
||||
@@ -91,7 +91,7 @@ fn handle_module(path: PathBuf, output: &str) -> Result<(), String> {
|
||||
});
|
||||
let isa = isa_builder.finish(settings::Flags::new(&flag_builder));
|
||||
|
||||
let mut runtime = wasmstandalone::StandaloneRuntime::with_flags(isa.flags().clone());
|
||||
let mut runtime = wasmstandalone::Runtime::with_flags(isa.flags().clone());
|
||||
|
||||
let translation = {
|
||||
match translate_module(&data, &mut runtime) {
|
||||
|
||||
Reference in New Issue
Block a user