Skip to content
Browse files

fhdl/namer: Add support for STORE_DEREF opcode

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
  • Loading branch information...
1 parent 9f05e72 commit 2b3f00cbc1abbb6c7ae6a30c1856a28ad79f999f @larsclausen larsclausen committed Jan 31, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 migen/fhdl/namer.py
View
3 migen/fhdl/namer.py
@@ -16,6 +16,9 @@ def get_var_name(frame):
elif opc == "STORE_FAST":
name_index = int(code.co_code[index+1])
return code.co_varnames[name_index]
+ elif opc == "STORE_DEREF":
+ name_index = int(code.co_code[index+1])
+ return code.co_cellvars[name_index]
elif opc == "LOAD_GLOBAL" or opc == "LOAD_ATTR" or opc == "LOAD_FAST":
index += 3
elif opc == "DUP_TOP":

0 comments on commit 2b3f00c

Please sign in to comment.
Something went wrong with that request. Please try again.