Searched refs:PythonModule (Results 1 - 4 of 4) sorted by relevance

/freebsd-11-stable/contrib/llvm-project/lldb/source/Plugins/ScriptInterpreter/Python/
H A DPythonDataObjects.cpp94 if (PythonModule::Check(m_py_obj))
749 PythonModule PythonModule::BuiltinsModule() {
757 PythonModule PythonModule::MainModule() { return AddModule("__main__"); }
759 PythonModule PythonModule::AddModule(llvm::StringRef module) {
761 return PythonModule(PyRefType::Borrowed, PyImport_AddModule(str.c_str()));
764 Expected<PythonModule> PythonModule
[all...]
H A DPythonDataObjects.h584 class PythonModule : public TypedPythonObject<PythonModule> { class in namespace:lldb_private::python
590 static PythonModule BuiltinsModule();
592 static PythonModule MainModule();
594 static PythonModule AddModule(llvm::StringRef module);
597 static PythonModule ImportModule(llvm::StringRef name) {
602 return PythonModule();
607 static llvm::Expected<PythonModule> Import(const llvm::Twine &name);
H A DScriptInterpreterPythonImpl.h373 python::PythonModule &GetMainModule();
390 python::PythonModule m_main_module;
H A DScriptInterpreterPython.cpp785 PythonModule &ScriptInterpreterPythonImpl::GetMainModule() {
787 m_main_module = unwrapIgnoringErrors(PythonModule::Import("__main__"));
812 PythonModule sys_module = unwrapIgnoringErrors(PythonModule::Import("sys"));
828 auto dict = PythonModule::MainModule()
1105 PythonModule &main_module = GetMainModule();
1218 PythonModule &main_module = GetMainModule();

Completed in 80 milliseconds