Make translator::intrinsics accessible to trampoline.

Start filling in the code to generate trampolines. Move func_type_to_llvm and type_to_llvm from code.rs to intrinsics.rs so that trampoline code can reuse them.
This commit is contained in:
Nick Lewycky
2020-04-24 16:42:14 -07:00
parent a6bde15ce5
commit 1de21f0c33
5 changed files with 85 additions and 49 deletions

View File

@ -91,7 +91,7 @@ impl Compiler for LLVMCompiler {
signatures
.par_iter()
.map_init(FuncTrampoline::new, |func_trampoline, sig| {
func_trampoline.trampoline(sig)
func_trampoline.trampoline(sig, self.config())
})
.collect::<Result<Vec<_>, CompileError>>()
}