diff options
author | Irit Katriel <1055913+iritkatriel@users.noreply.github.com> | 2024-09-10 16:16:00 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-10 16:16:00 (GMT) |
commit | a2d0818c85c985a54f358e1d9ea7ce3eb0c5acca (patch) | |
tree | d7fb7df9c9aadc69c221de5026641b83edbfcad0 /Python/compile.c | |
parent | 3597642ed57d184511ca2dbd1a382ffe8e280ac4 (diff) | |
download | cpython-a2d0818c85c985a54f358e1d9ea7ce3eb0c5acca.zip cpython-a2d0818c85c985a54f358e1d9ea7ce3eb0c5acca.tar.gz cpython-a2d0818c85c985a54f358e1d9ea7ce3eb0c5acca.tar.bz2 |
gh-123881: make compiler add the .generic_base base class without constructing AST nodes (#123883)
Diffstat (limited to 'Python/compile.c')
-rw-r--r-- | Python/compile.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/Python/compile.c b/Python/compile.c index 89d75b5..72399c7 100644 --- a/Python/compile.c +++ b/Python/compile.c @@ -88,7 +88,6 @@ typedef struct _PyCompiler { including names tuple */ struct compiler_unit *u; /* compiler state for current block */ PyObject *c_stack; /* Python list holding compiler_unit ptrs */ - PyArena *c_arena; /* pointer to memory allocation arena */ bool c_save_nested_seqs; /* if true, construct recursive instruction sequences * (including instructions for nested code objects) @@ -112,7 +111,6 @@ compiler_setup(compiler *c, mod_ty mod, PyObject *filename, } c->c_filename = Py_NewRef(filename); - c->c_arena = arena; if (!_PyFuture_FromAST(mod, filename, &c->c_future)) { return ERROR; } @@ -1244,12 +1242,6 @@ _PyCompile_Metadata(compiler *c) return &c->u->u_metadata; } -PyArena * -_PyCompile_Arena(compiler *c) -{ - return c->c_arena; -} - #ifndef NDEBUG int _PyCompile_IsTopLevelAwait(compiler *c) |