diff options
author | INADA Naoki <methane@users.noreply.github.com> | 2017-12-14 07:47:20 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-14 07:47:20 (GMT) |
commit | 7ea143ae795a9fd57eaccf490d316bdc13ee9065 (patch) | |
tree | 1276bfc657c9a9281c6152ed656a89abdaaff4b8 /Include | |
parent | b5fd9ad05e0f15f8272b8f1b829af22077230584 (diff) | |
download | cpython-7ea143ae795a9fd57eaccf490d316bdc13ee9065.zip cpython-7ea143ae795a9fd57eaccf490d316bdc13ee9065.tar.gz cpython-7ea143ae795a9fd57eaccf490d316bdc13ee9065.tar.bz2 |
bpo-29469: Move constant folding to AST optimizer (GH-2858)
Diffstat (limited to 'Include')
-rw-r--r-- | Include/compile.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Include/compile.h b/Include/compile.h index 3cc351d..2e9accf 100644 --- a/Include/compile.h +++ b/Include/compile.h @@ -75,6 +75,8 @@ PyAPI_FUNC(PyObject*) _Py_Mangle(PyObject *p, PyObject *name); #define PY_INVALID_STACK_EFFECT INT_MAX PyAPI_FUNC(int) PyCompile_OpcodeStackEffect(int opcode, int oparg); +PyAPI_FUNC(int) _PyAST_Optimize(struct _mod *, PyArena *arena); + #ifdef __cplusplus } #endif |