devices/runtime: rename syscall to build_syscall

This commit is contained in:
Sebastien Bourdeauducq 2014-09-22 13:22:38 +08:00
parent 5244a63b55
commit 19abab3feb
2 changed files with 2 additions and 2 deletions

View File

@ -65,7 +65,7 @@ class LinkInterface:
func_type = lc.Type.function(lc.Type.void(), [lc.Type.int()])
self.llvm_module.add_function(func_type, "__eh_raise")
def syscall(self, syscall_name, args, builder):
def build_syscall(self, syscall_name, args, builder):
r = _chr_to_value[_syscalls[syscall_name][-1]]()
if builder is not None:
args = [arg.auto_load(builder) for arg in args]

View File

@ -135,7 +135,7 @@ class Visitor:
self.builder,
[self.visit_expression(arg) for arg in node.args])
elif fn == "syscall":
return self.env.syscall(
return self.env.build_syscall(
node.args[0].s,
[self.visit_expression(expr) for expr in node.args[1:]],
self.builder)