Added some comments to clarify where "init_lldb" comes from.
git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@107801 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Interpreter/ScriptInterpreterPython.cpp b/source/Interpreter/ScriptInterpreterPython.cpp
index d7a3363..aac3dd8 100644
--- a/source/Interpreter/ScriptInterpreterPython.cpp
+++ b/source/Interpreter/ScriptInterpreterPython.cpp
@@ -37,6 +37,8 @@
#include "lldb/Core/Debugger.h"
#include "lldb/Target/Process.h"
+// This function is in the C++ output file generated by SWIG after it is
+// run on all of the headers in "lldb/API/SB*.h"
extern "C" void init_lldb (void);
using namespace lldb;
@@ -183,6 +185,8 @@
m_compiled_module = static_cast<void*>(compiled_module);
+ // This function is in the C++ output file generated by SWIG after it is
+ // run on all of the headers in "lldb/API/SB*.h"
init_lldb ();
// Update the path python uses to search for modules to include the current directory.