diff options
author | Jonas Devlieghere <jonas@devlieghere.com> | 2022-04-25 20:14:44 -0700 |
---|---|---|
committer | Jonas Devlieghere <jonas@devlieghere.com> | 2022-04-27 08:26:25 -0700 |
commit | 90537673302f13e92ffabba84901164c6b974b2d (patch) | |
tree | cd66c08919923e7809fa146451a4e8df47f0f847 /lldb/unittests/ScriptInterpreter/Python/PythonTestSuite.cpp | |
parent | 16baf59c6d0b3bf7392995e3e55fc9e2ba9cb5e7 (diff) | |
download | llvm-90537673302f13e92ffabba84901164c6b974b2d.zip llvm-90537673302f13e92ffabba84901164c6b974b2d.tar.gz llvm-90537673302f13e92ffabba84901164c6b974b2d.tar.bz2 |
Remove Python 2 support from the ScriptInterpreter plugin
We dropped downstream support for Python 2 in the previous release. Now
that we have branched for the next release the window where this kind of
change could introduce conflicts is closing too. Start by getting rid of
Python 2 support in the Script Interpreter plugin.
Differential revision: https://reviews.llvm.org/D124429
Diffstat (limited to 'lldb/unittests/ScriptInterpreter/Python/PythonTestSuite.cpp')
-rw-r--r-- | lldb/unittests/ScriptInterpreter/Python/PythonTestSuite.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/lldb/unittests/ScriptInterpreter/Python/PythonTestSuite.cpp b/lldb/unittests/ScriptInterpreter/Python/PythonTestSuite.cpp index a0e97a2..6ac4606 100644 --- a/lldb/unittests/ScriptInterpreter/Python/PythonTestSuite.cpp +++ b/lldb/unittests/ScriptInterpreter/Python/PythonTestSuite.cpp @@ -51,11 +51,7 @@ void PythonTestSuite::TearDown() { // callbacks. Because they're defined in libLLDB which we cannot link for the // unit test, we have a 'default' implementation here. -#if PY_MAJOR_VERSION >= 3 extern "C" PyObject *PyInit__lldb(void) { return nullptr; } -#else -extern "C" void init_lldb(void) {} -#endif llvm::Expected<bool> lldb_private::LLDBSwigPythonBreakpointCallbackFunction( const char *python_function_name, const char *session_dictionary_name, |