Connect part of the llvm backend to the runtime

This commit is contained in:
Lachlan Sneff
2019-02-28 13:18:00 -08:00
parent d4ae5cdd40
commit 359ac5abec
7 changed files with 77 additions and 24 deletions

View File

@ -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))
};