2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-24 19:04:02 +08:00

compiler/ir: pass arguments to syscall

This commit is contained in:
Sebastien Bourdeauducq 2014-07-05 19:13:05 +02:00
parent 6b8ac5ae7b
commit 711be75c35

View File

@ -113,7 +113,8 @@ def _emit_statements(env, builder, ns, stmts):
elif isinstance(stmt, ast.Expr) and isinstance(stmt.value, ast.Call):
call = stmt.value
if call.func.id == "syscall":
env.emit_syscall(builder, call.args[0].s, [])
env.emit_syscall(builder, call.args[0].s,
[_emit_expr(builder, ns, expr) for expr in call.args[1:]])
else:
raise NotImplementedError
else: