mirror of
https://github.com/fluencelabs/wasmer
synced 2025-06-21 20:51:32 +00:00
Connect part of the llvm backend to the runtime
This commit is contained in:
@ -54,10 +54,10 @@ impl Compiler for LLVMCompiler {
|
||||
_vmctx: *mut vm::Ctx,
|
||||
_: Token,
|
||||
) -> RuntimeResult<Vec<Value>> {
|
||||
Ok(vec![])
|
||||
unimplemented!("the llvm-based backend does not yet implement ProtectedCaller")
|
||||
}
|
||||
fn get_early_trapper(&self) -> Box<dyn UserTrapper> {
|
||||
unimplemented!()
|
||||
Box::new(Placeholder)
|
||||
}
|
||||
}
|
||||
impl CacheGen for Placeholder {
|
||||
@ -68,6 +68,11 @@ impl Compiler for LLVMCompiler {
|
||||
unimplemented!()
|
||||
}
|
||||
}
|
||||
impl UserTrapper for Placeholder {
|
||||
unsafe fn do_early_trap(&self, msg: String) -> ! {
|
||||
unimplemented!("do early trap: {}", msg)
|
||||
}
|
||||
}
|
||||
|
||||
(Box::new(Placeholder), Box::new(Placeholder))
|
||||
};
|
||||
|
Reference in New Issue
Block a user