More code reorganization.

This commit is contained in:
Dan Gohman
2018-08-03 13:35:25 -07:00
parent fdd3600f1b
commit 6659ef7018
7 changed files with 140 additions and 151 deletions

View File

@@ -27,6 +27,7 @@ use std::path::Path;
use std::path::PathBuf;
use std::process;
use wasmtime_obj::emit_module;
use wasmtime_runtime::compile_module;
const USAGE: &str = "
Wasm to native object translation utility.
@@ -105,7 +106,7 @@ fn handle_module(path: PathBuf, output: &str) -> Result<(), String> {
let translation = environ.finish_translation();
let (compilation, relocations) = translation.compile(&*isa)?;
let (compilation, relocations) = compile_module(&translation, &*isa)?;
emit_module(&mut obj, &compilation, &relocations)?;