mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
dump readable opcode names in flowgraph debug utility (#109392)
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
This commit is contained in:
parent
9ccd2e6aee
commit
1ce9ea0453
1 changed files with 2 additions and 3 deletions
|
@ -261,8 +261,8 @@ dump_instr(cfg_instr *i)
|
|||
if (HAS_TARGET(i->i_opcode)) {
|
||||
sprintf(arg, "target: %p [%d] ", i->i_target, i->i_oparg);
|
||||
}
|
||||
fprintf(stderr, "line: %d, opcode: %d %s%s\n",
|
||||
i->i_loc.lineno, i->i_opcode, arg, jump);
|
||||
fprintf(stderr, "line: %d, %s (%d) %s%s\n",
|
||||
i->i_loc.lineno, _PyOpcode_OpName[i->i_opcode], i->i_opcode, arg, jump);
|
||||
}
|
||||
|
||||
static inline int
|
||||
|
@ -2661,4 +2661,3 @@ _PyCfg_OptimizedCfgToInstructionSequence(cfg_builder *g,
|
|||
|
||||
return SUCCESS;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue