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

Jonas Devlieghere via All-commits all-commits at lists.llvm.org
Wed Jan 8 16:34:14 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: ae47a3d8107856c84c104f3c2e43a553f4e36748
      https://github.com/llvm/llvm-project/commit/ae47a3d8107856c84c104f3c2e43a553f4e36748
  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/SBAddress.i
    M lldb/scripts/interface/SBBlock.i
    M lldb/scripts/interface/SBBreakpoint.i
    M lldb/scripts/interface/SBBreakpointLocation.i
    M lldb/scripts/interface/SBBreakpointName.i
    M lldb/scripts/interface/SBCommandReturnObject.i
    M lldb/scripts/interface/SBCompileUnit.i
    M lldb/scripts/interface/SBData.i
    M lldb/scripts/interface/SBDebugger.i
    M lldb/scripts/interface/SBDeclaration.i
    M lldb/scripts/interface/SBError.i
    M lldb/scripts/interface/SBFileSpec.i
    M lldb/scripts/interface/SBFrame.i
    M lldb/scripts/interface/SBFunction.i
    M lldb/scripts/interface/SBInstruction.i
    M lldb/scripts/interface/SBInstructionList.i
    M lldb/scripts/interface/SBLineEntry.i
    M lldb/scripts/interface/SBMemoryRegionInfo.i
    M lldb/scripts/interface/SBModule.i
    M lldb/scripts/interface/SBModuleSpec.i
    M lldb/scripts/interface/SBTarget.i
    M lldb/scripts/lldb.swig
    M lldb/scripts/lldb_lua.swig
    A lldb/scripts/macros.swig

  Log Message:
  -----------
  [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




More information about the All-commits mailing list