Skip to content

Commit f701561

Browse files
committed
Delete undeclared out-of-line definition of LLDBSwigPythonCreateScriptedObject
This was causing a build failure and I *think* holding up the automerger. It looks like this was deleted by an upstream commit llvm#68052 and perhaps mis-merged and therefore retained.
1 parent 5252674 commit f701561

File tree

1 file changed

+0
-42
lines changed

1 file changed

+0
-42
lines changed

lldb/bindings/python/static-binding/LLDBWrapPython.cpp

-42
Original file line numberDiff line numberDiff line change
@@ -4860,48 +4860,6 @@ PythonObject lldb_private::python::SWIGBridge::LLDBSwigPythonCreateCommandObject
48604860
return pfunc(SWIGBridge::ToSWIGWrapper(std::move(debugger_sp)), dict);
48614861
}
48624862

4863-
PythonObject lldb_private::python::SWIGBridge::LLDBSwigPythonCreateScriptedObject(
4864-
const char *python_class_name, const char *session_dictionary_name,
4865-
lldb::ExecutionContextRefSP exe_ctx_sp,
4866-
const lldb_private::StructuredDataImpl &args_impl,
4867-
std::string &error_string) {
4868-
if (python_class_name == NULL || python_class_name[0] == '\0' ||
4869-
!session_dictionary_name)
4870-
return PythonObject();
4871-
4872-
PyErr_Cleaner py_err_cleaner(true);
4873-
4874-
auto dict = PythonModule::MainModule().ResolveName<PythonDictionary>(
4875-
session_dictionary_name);
4876-
auto pfunc = PythonObject::ResolveNameWithDictionary<PythonCallable>(
4877-
python_class_name, dict);
4878-
4879-
if (!pfunc.IsAllocated()) {
4880-
error_string.append("could not find script class: ");
4881-
error_string.append(python_class_name);
4882-
return PythonObject();
4883-
}
4884-
4885-
llvm::Expected<PythonCallable::ArgInfo> arg_info = pfunc.GetArgInfo();
4886-
if (!arg_info) {
4887-
llvm::handleAllErrors(
4888-
arg_info.takeError(),
4889-
[&](PythonException &E) { error_string.append(E.ReadBacktrace()); },
4890-
[&](const llvm::ErrorInfoBase &E) {
4891-
error_string.append(E.message());
4892-
});
4893-
return PythonObject();
4894-
}
4895-
4896-
PythonObject result = {};
4897-
if (arg_info.get().max_positional_args == 2) {
4898-
result = pfunc(SWIGBridge::ToSWIGWrapper(exe_ctx_sp), SWIGBridge::ToSWIGWrapper(args_impl));
4899-
} else {
4900-
error_string.assign("wrong number of arguments in __init__, should be 2 "
4901-
"(not including self)");
4902-
}
4903-
return result;
4904-
}
49054863

49064864
PythonObject lldb_private::python::SWIGBridge::LLDBSwigPythonCreateScriptedThreadPlan(
49074865
const char *python_class_name, const char *session_dictionary_name,

0 commit comments

Comments
 (0)