gh-87092: Expose assembler to unit tests (#103988)

This commit is contained in:
Irit Katriel 2023-05-01 22:29:30 +01:00 committed by GitHub
parent a474e04388
commit 80b714835d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 329 additions and 48 deletions

View file

@ -223,6 +223,15 @@ dump_basicblock(const basicblock *b)
}
}
}
void
_PyCfgBuilder_DumpGraph(const basicblock *entryblock)
{
for (const basicblock *b = entryblock; b != NULL; b = b->b_next) {
dump_basicblock(b);
}
}
#endif
@ -592,6 +601,11 @@ translate_jump_labels_to_targets(basicblock *entryblock)
return SUCCESS;
}
int
_PyCfg_JumpLabelsToTargets(basicblock *entryblock)
{
return translate_jump_labels_to_targets(entryblock);
}
static int
mark_except_handlers(basicblock *entryblock) {