forked from M-Labs/artiq
1
0
Fork 0

compiler/inline: return number -> function RPC map

This commit is contained in:
Sebastien Bourdeauducq 2014-07-07 19:11:07 +02:00
parent a03a60b90e
commit ffd2bdc4eb
1 changed files with 2 additions and 1 deletions

View File

@ -238,4 +238,5 @@ def inline(core, k_function, k_args, k_kwargs, rm=None):
if init_kernel_attr: if init_kernel_attr:
funcdef.body[0:0] = rm.kernel_attr_init funcdef.body[0:0] = rm.kernel_attr_init
return funcdef.body, rm.rpc_map r_rpc_map = dict((rpc_num, rpc_fun) for rpc_fun, rpc_num in rm.rpc_map.items())
return funcdef.body, r_rpc_map