mirror of
https://github.com/python/cpython.git
synced 2025-11-24 20:30:18 +00:00
gh-126835: Rename ast_opt.c to ast_preprocess.c and related stuff after moving const folding to the peephole optimizier (#131830)
This commit is contained in:
parent
8eaaf16402
commit
0a1fedb70b
14 changed files with 59 additions and 57 deletions
|
|
@ -845,7 +845,7 @@ builtin_compile_impl(PyObject *module, PyObject *source, PyObject *filename,
|
|||
goto error;
|
||||
}
|
||||
int syntax_check_only = ((flags & PyCF_OPTIMIZED_AST) == PyCF_ONLY_AST); /* unoptiomized AST */
|
||||
if (_PyCompile_AstOptimize(mod, filename, &cf, optimize,
|
||||
if (_PyCompile_AstPreprocess(mod, filename, &cf, optimize,
|
||||
arena, syntax_check_only) < 0) {
|
||||
_PyArena_Free(arena);
|
||||
goto error;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue