diff options
author | Irit Katriel <1055913+iritkatriel@users.noreply.github.com> | 2023-04-11 10:20:39 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-11 10:20:39 (GMT) |
commit | 21bea68e2e97369d808db7d053d4b51b3bc761b9 (patch) | |
tree | 78ddcff7fbdce360a28f4b61d160144d3e2d0c80 /Tools | |
parent | 33822d037a3381d239dcc532937138da6f3da669 (diff) | |
download | cpython-21bea68e2e97369d808db7d053d4b51b3bc761b9.zip cpython-21bea68e2e97369d808db7d053d4b51b3bc761b9.tar.gz cpython-21bea68e2e97369d808db7d053d4b51b3bc761b9.tar.bz2 |
gh-91276: remove unused _PyOpcode_RelativeJump (#103156)
Diffstat (limited to 'Tools')
-rw-r--r-- | Tools/build/generate_opcode_h.py | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/Tools/build/generate_opcode_h.py b/Tools/build/generate_opcode_h.py index 614b17d..12fdd3a 100644 --- a/Tools/build/generate_opcode_h.py +++ b/Tools/build/generate_opcode_h.py @@ -130,12 +130,10 @@ def main(opcode_py, outfile='Include/opcode.h', internaloutfile='Include/interna for name, op in specialized_opmap.items(): fobj.write(DEFINE.format(name, op)) - iobj.write("\nextern const uint32_t _PyOpcode_RelativeJump[9];\n") iobj.write("\nextern const uint32_t _PyOpcode_Jump[9];\n") iobj.write("\nextern const uint8_t _PyOpcode_Caches[256];\n") iobj.write("\nextern const uint8_t _PyOpcode_Deopt[256];\n") iobj.write("\n#ifdef NEED_OPCODE_TABLES\n") - write_int_array_from_ops("_PyOpcode_RelativeJump", opcode['hasjrel'], iobj) write_int_array_from_ops("_PyOpcode_Jump", opcode['hasjrel'] + opcode['hasjabs'], iobj) iobj.write("\nconst uint8_t _PyOpcode_Caches[256] = {\n") |