diff --git a/kotlang/ast.py b/kotlang/ast.py index 2fd41f5..78a71d3 100644 --- a/kotlang/ast.py +++ b/kotlang/ast.py @@ -272,13 +272,6 @@ def codegen(self, module: ir.Module, builder: ir.IRBuilder, namespace: Namespace self.second_statement.codegen(module, builder, namespace) -def get_intrinsic(module: ir.Module, name: str) -> ir.Function: - if name in module.globals: - return module.globals[name] - fntype = ir.FunctionType(ir.VoidType(), ()) - return ir.Function(module, fntype, name=name) - - @dataclass class PatternMatchArm: pattern: Expression