diff options
author | Irit Katriel <1055913+iritkatriel@users.noreply.github.com> | 2022-07-01 14:33:35 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-01 14:33:35 (GMT) |
commit | c57aad777afc6c0b382981ee9e4bc94c03bf5f68 (patch) | |
tree | 39128a485e3372715a4b2fe4e03d7117e0fba9fc /Python/makeopcodetargets.py | |
parent | be80db14c432c621e44920f8fd95a3f3191aca9b (diff) | |
download | cpython-c57aad777afc6c0b382981ee9e4bc94c03bf5f68.zip cpython-c57aad777afc6c0b382981ee9e4bc94c03bf5f68.tar.gz cpython-c57aad777afc6c0b382981ee9e4bc94c03bf5f68.tar.bz2 |
gh-94216: add pseudo instructions to the dis/opcodes modules (GH-94241)
Diffstat (limited to 'Python/makeopcodetargets.py')
-rwxr-xr-x | Python/makeopcodetargets.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Python/makeopcodetargets.py b/Python/makeopcodetargets.py index 3bf2e35..33a4b4a 100755 --- a/Python/makeopcodetargets.py +++ b/Python/makeopcodetargets.py @@ -34,7 +34,8 @@ def write_contents(f): targets = ['_unknown_opcode'] * 256 targets[255] = "TARGET_DO_TRACING" for opname, op in opcode.opmap.items(): - targets[op] = "TARGET_%s" % opname + if not opcode.is_pseudo(op): + targets[op] = "TARGET_%s" % opname next_op = 1 for opname in opcode._specialized_instructions: while targets[next_op] != '_unknown_opcode': |