Remove syscall builtin.

This commit is contained in:
whitequark 2015-08-10 16:44:29 +03:00
parent 261515dfe5
commit f53a5ff202
3 changed files with 0 additions and 8 deletions

View File

@ -150,9 +150,6 @@ def fn_print():
def fn_kernel():
return types.TBuiltinFunction("kernel")
def fn_syscall():
return types.TBuiltinFunction("syscall")
# Accessors
def is_none(typ):

View File

@ -20,5 +20,4 @@ def globals():
"round": builtins.fn_round(),
"print": builtins.fn_print(),
"kernel": builtins.fn_kernel(),
"syscall": builtins.fn_syscall(),
}

View File

@ -666,10 +666,6 @@ class Inferencer(algorithm.Visitor):
pass
else:
diagnose(valid_forms())
# TODO: add when it is clear what interface syscall() has
# elif types.is_builtin(typ, "syscall"):
# valid_Forms = lambda: [
# ]
def visit_CallT(self, node):
self.generic_visit(node)