forked from M-Labs/artiq
1
0
Fork 0

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
1 changed files with 2 additions and 1 deletions

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: