[lldb/Interpreter] Improve ScriptedPythonInterface::GetStatusFromMethod
This patch makes `ScriptedPythonInterface::GetStatusFromMethod` take a parameter pack as an argument. That will allow it to pass arbitrary arguments to the python method. Differential Revision: https://reviews.llvm.org/D139248 Signed-off-by: Med Ismail Bennani <medismail.bennani@gmail.com>
This commit is contained in:
1 parent
d9f4d1b048
commit
3fbc890485
2 files changed
+7
-9
No files matched your search
@@ -27,14 +27,6 @@ ScriptedPythonInterface::ScriptedPythonInterface(
|
||||
ScriptInterpreterPythonImpl &interpreter)
|
||||
: ScriptedInterface(), m_interpreter(interpreter) {}
|
||||
|
||||
Status
|
||||
ScriptedPythonInterface::GetStatusFromMethod(llvm::StringRef method_name) {
|
||||
Status error;
|
||||
Dispatch<Status>(method_name, error);
|
||||
|
||||
return error;
|
||||
}
|
||||
|
||||
template <>
|
||||
StructuredData::ArraySP
|
||||
ScriptedPythonInterface::ExtractValueFromPythonObject<StructuredData::ArraySP>(
|
||||
|
||||
Reference in new issue
Block a user