Fix build of singlepass with make doc.

This commit is contained in:
Nick Lewycky
2020-05-19 11:23:37 -07:00
parent ae6f0dadb2
commit 96baf9e5a1
2 changed files with 9 additions and 1 deletions

View File

@@ -74,4 +74,12 @@ impl Compiler for SinglepassCompiler {
"Singlepass trampoline compilation not supported yet".to_owned(),
))
}
fn compile_dynamic_function_trampolines(
&self,
module: &Module,
) -> Result<PrimaryMap<FunctionIndex, FunctionBody>, CompileError> {
Ok(PrimaryMap::new())
// unimplemented!("Dynamic function trampolines not yet implemented");
}
}

View File

@@ -4,7 +4,7 @@ use crate::x64_decl::{new_machine_state, X64Register};
use smallvec::smallvec;
use smallvec::SmallVec;
use std::collections::HashSet;
use wasmparser::Type as WpType;
use wasmer_compiler::wasmparser::Type as WpType;
struct MachineStackOffset(usize);