Update llvm backend to new backend abstraction

This commit is contained in:
Lachlan Sneff
2019-04-12 10:05:50 -07:00
parent 8b5da1d86e
commit 75cc65a8c5
2 changed files with 23 additions and 172 deletions

View File

@ -38,7 +38,7 @@ impl Compiler for LLVMCompiler {
let (info, code_reader) = read_info::read_module(wasm, compiler_config).unwrap();
let (module, intrinsics) = code::parse_function_bodies(&info, code_reader).unwrap();
let (backend, protected_caller) = backend::LLVMBackend::new(module, intrinsics);
let backend = backend::LLVMBackend::new(module, intrinsics);
// Create placeholder values here.
let cache_gen = {
@ -61,8 +61,7 @@ impl Compiler for LLVMCompiler {
};
Ok(ModuleInner {
func_resolver: Box::new(backend),
protected_caller: Box::new(protected_caller),
runnable_module: Box::new(backend),
cache_gen,
info,