Skip to content

Commit

Permalink
Remove unused get_intrinsic function
Browse files Browse the repository at this point in the history
  • Loading branch information
jstasiak committed Feb 7, 2019
1 parent 4239922 commit 166dad0
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions kotlang/ast.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 166dad0

Please sign in to comment.