[lldb/Plugins] Move member template specialization out of class
authorMed Ismail Bennani <medismail.bennani@gmail.com>
Fri, 3 Sep 2021 22:03:06 +0000 (22:03 +0000)
committerMed Ismail Bennani <medismail.bennani@gmail.com>
Fri, 3 Sep 2021 22:18:55 +0000 (22:18 +0000)
commit5f6f33da9ee6cbaef5f10b4a7be34a91d5185b2b
tree68c33dd6265108292f055b5e38aaa1234b4dc813
parentb989662eb000efb54b91b8c82d2b2713e2da20fc
[lldb/Plugins] Move member template specialization out of class

This patch should fix the build failure that surfaced when build llvm
with GCC: https://lab.llvm.org/staging/#/builders/16/builds/10450

GCC complained that I explicitely specialized
 `ScriptedPythonInterface::ExtractValueFromPythonObject` in a
in non-namespace scope, which is tolerated by Clang.

To solve this issue, the specialization were declared out of the class
and implemented in the source file.

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