basic structures work in the jit

This commit is contained in:
2024-04-11 08:57:50 -07:00
parent 5f2fc7cb34
commit 8479a84e07
4 changed files with 19 additions and 5 deletions

View File

@@ -199,6 +199,7 @@ impl<M: Module> Backend<M> {
let func_id = match self.defined_functions.entry(interned_name) {
hash_map::Entry::Occupied(entry) => *entry.get(),
hash_map::Entry::Vacant(vac) => {
tracing::warn!(name = ?function_name, "compiling undeclared function");
let func_id = self.module.declare_function(
function_name,
Linkage::Export,