summaryrefslogtreecommitdiffstats
path: root/Modules/_opcode.c
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/_opcode.c')
-rw-r--r--Modules/_opcode.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/Modules/_opcode.c b/Modules/_opcode.c
index d666f63..6764364 100644
--- a/Modules/_opcode.c
+++ b/Modules/_opcode.c
@@ -5,10 +5,11 @@
#include "Python.h"
#include "compile.h"
#include "opcode.h"
-#include "internal/pycore_ceval.h"
-#include "internal/pycore_code.h"
-#include "internal/pycore_compile.h"
-#include "internal/pycore_intrinsics.h"
+#include "pycore_ceval.h"
+#include "pycore_code.h"
+#include "pycore_compile.h"
+#include "pycore_intrinsics.h"
+#include "pycore_optimizer.h" // _Py_GetExecutor()
/*[clinic input]
module _opcode
@@ -395,7 +396,7 @@ _opcode_get_executor_impl(PyObject *module, PyObject *code, int offset)
return NULL;
}
#ifdef _Py_TIER2
- return (PyObject *)PyUnstable_GetExecutor((PyCodeObject *)code, offset);
+ return (PyObject *)_Py_GetExecutor((PyCodeObject *)code, offset);
#else
PyErr_Format(PyExc_RuntimeError,
"Executors are not available in this build");