From fbb4d1e43d0db9f8d1514a0209bb01f56e49d75f Mon Sep 17 00:00:00 2001 From: Jonas Devlieghere Date: Fri, 7 Feb 2020 14:58:18 -0800 Subject: [lldb/Plugins] Use external functions to (de)initialize plugins This is a step towards making the initialize and terminate calls be generated by CMake, which in turn is towards making it possible to disable plugins at configuration time. Differential revision: https://reviews.llvm.org/D74245 --- .../source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp') diff --git a/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp b/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp index 95a686d..fefc756 100644 --- a/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp +++ b/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp @@ -56,6 +56,8 @@ using namespace lldb_private; using namespace lldb_private::python; using llvm::Expected; +LLDB_PLUGIN(ScriptInterpreterPython); + // Defined in the SWIG source file #if PY_MAJOR_VERSION >= 3 extern "C" PyObject *PyInit__lldb(void); -- cgit v1.1