Fix llvm test

This commit is contained in:
Lachlan Sneff 2019-04-12 10:33:30 -07:00
parent 051d435423
commit 0d30c957a2

View File

@ -103,7 +103,9 @@ fn validate(bytes: &[u8]) -> Result<(), CompileError> {
fn test_read_module() {
use std::mem::transmute;
use wabt::wat2wasm;
use wasmer_runtime_core::{structures::TypedIndex, types::LocalFuncIndex, vm, vmcalls};
use wasmer_runtime_core::{
backend::RunnableModule, structures::TypedIndex, types::LocalFuncIndex, vm,
};
// let wasm = include_bytes!("../../spectests/examples/simple/simple.wasm") as &[u8];
let wat = r#"
(module
@ -121,7 +123,7 @@ fn test_read_module() {
let (module, intrinsics) = code::parse_function_bodies(&info, code_reader).unwrap();
let (backend, _caller) = backend::LLVMBackend::new(module, intrinsics);
let backend = backend::LLVMBackend::new(module, intrinsics);
let func_ptr = backend.get_func(&info, LocalFuncIndex::new(0)).unwrap();