[lldb/Plugins] Fix build failure with GCC in ScriptedPythonInterface::Dispatch
authorMed Ismail Bennani <medismail.bennani@gmail.com>
Sat, 19 Nov 2022 21:20:11 +0000 (13:20 -0800)
committerMed Ismail Bennani <medismail.bennani@gmail.com>
Sat, 19 Nov 2022 21:24:47 +0000 (13:24 -0800)
commit41f3e6b74df173198c67f46f223b9815334d42a2
tree1eb0d663ce28be06ce53f37ba4d9df49a172a96f
parent2baa99b2a8e43ecb3c43056a964c89f4ee6651d2
[lldb/Plugins] Fix build failure with GCC in ScriptedPythonInterface::Dispatch

This patch should fix the build failures following 7e01924 when building
with GCC. These failures were mostly caused by GCC's poor support of C++
templates (namely, partial template specialization).

To work around that problem, this patch makes use of overloading and get
rid of the templated structs and specialized structs.

Signed-off-by: Med Ismail Bennani <medismail.bennani@gmail.com>
lldb/source/Plugins/ScriptInterpreter/Python/ScriptedPythonInterface.h