[all-commits] [llvm/llvm-project] 51bdd9: [lldb/SWIG] Refactor extensions to be non Python-s...

Jonas Devlieghere via All-commits all-commits at lists.llvm.org
Wed Jan 8 21:03:05 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 51bdd98b8a52d07004bcaddff26caf376a1c32bf
      https://github.com/llvm/llvm-project/commit/51bdd98b8a52d07004bcaddff26caf376a1c32bf
  Author: Jonas Devlieghere <jonas at devlieghere.com>
  Date:   2020-01-08 (Wed, 08 Jan 2020)

  Changed paths:
    M lldb/scripts/Python/python-extensions.swig
    M lldb/scripts/interface/SBProcess.i
    M lldb/scripts/interface/SBSection.i
    M lldb/scripts/interface/SBSymbol.i
    M lldb/scripts/interface/SBSymbolContext.i
    M lldb/scripts/interface/SBSymbolContextList.i
    M lldb/scripts/interface/SBThread.i
    M lldb/scripts/interface/SBType.i
    M lldb/scripts/interface/SBTypeCategory.i
    M lldb/scripts/interface/SBTypeEnumMember.i
    M lldb/scripts/interface/SBTypeFilter.i
    M lldb/scripts/interface/SBTypeFormat.i
    M lldb/scripts/interface/SBTypeNameSpecifier.i
    M lldb/scripts/interface/SBTypeSummary.i
    M lldb/scripts/interface/SBTypeSynthetic.i
    M lldb/scripts/interface/SBValue.i
    M lldb/scripts/interface/SBValueList.i
    M lldb/scripts/interface/SBWatchpoint.i

  Log Message:
  -----------
  [lldb/SWIG] Refactor extensions to be non Python-specific (3/3)

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




More information about the All-commits mailing list