HomePhabricator

[lldb/SWIG] Refactor extensions to be non Python-specific (2/2)
1150259ed146Unpublished

Authored by JDevlieghere on Jan 8 2020, 4:13 PM.

Unpublished Commit ยท Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

[lldb/SWIG] Refactor extensions to be non Python-specific (2/2)

The current SWIG extensions for the string conversion operator is Python
specific because it uses the PythonObjects. This means that the code
cannot be reused for other SWIG supported languages such as Lua.

This reimplements the extensions in a more generic way that can be
reused. It uses a SWIG macro to reduce code duplication.

Differential revision: https://reviews.llvm.org/D72377

(cherry picked from commit ae47a3d8107856c84c104f3c2e43a553f4e36748)