Browse Source

Fix lightbeam build broken when supporting ModuleTranslateState (#445)

pull/449/head
Johnnie Birch 5 years ago
committed by Dan Gohman
parent
commit
a3dd4b91e1
  1. 4
      wasmtime-environ/src/lightbeam.rs
  2. 1
      wasmtime-jit/src/compiler.rs

4
wasmtime-environ/src/lightbeam.rs

@ -9,7 +9,7 @@ use crate::address_map::{ModuleAddressMap, ValueLabelsRanges};
use crate::cranelift::RelocSink;
use cranelift_codegen::{ir, isa};
use cranelift_entity::{PrimaryMap, SecondaryMap};
use cranelift_wasm::DefinedFuncIndex;
use cranelift_wasm::{DefinedFuncIndex, ModuleTranslationState};
use lightbeam;
/// A compiler that compiles a WebAssembly module with Lightbeam, directly translating the Wasm file.
@ -20,7 +20,7 @@ impl crate::compilation::Compiler for Lightbeam {
/// associated relocations.
fn compile_module<'data, 'module>(
module: &'module Module,
module_translation: &ModuleTranslationState,
_module_translation: &ModuleTranslationState,
function_body_inputs: PrimaryMap<DefinedFuncIndex, FunctionBodyData<'data>>,
isa: &dyn isa::TargetIsa,
// TODO

1
wasmtime-jit/src/compiler.rs

@ -133,6 +133,7 @@ impl Compiler {
CompilationStrategy::Lightbeam => {
wasmtime_environ::lightbeam::Lightbeam::compile_module(
module,
module_translation,
function_body_inputs,
&*self.isa,
debug_data.is_some(),

Loading…
Cancel
Save