[all-commits] [llvm/llvm-project] 737521: get rid of PythonInteger::GetInteger()

smoofra via All-commits all-commits at lists.llvm.org
Tue Apr 21 17:17:55 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 7375212172951d2fc283c81d03c1a8588c3280c6
      https://github.com/llvm/llvm-project/commit/7375212172951d2fc283c81d03c1a8588c3280c6
  Author: Lawrence D'Anna <lawrence_danna at apple.com>
  Date:   2020-04-21 (Tue, 21 Apr 2020)

  Changed paths:
    M lldb/bindings/python/python-typemaps.swig
    M lldb/bindings/python/python-wrapper.swig
    M lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp
    M lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h
    M lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
    M lldb/unittests/ScriptInterpreter/Python/PythonDataObjectsTests.cpp

  Log Message:
  -----------
  get rid of PythonInteger::GetInteger()

Summary:
One small step in my long running quest to improve python exception handling in
LLDB.  Replace GetInteger() which just returns an int with As<long long> and
friends, which return Expected types that can track python exceptions

Reviewers: labath, jasonmolenda, JDevlieghere, vadimcn

Reviewed By: labath

Subscribers: lldb-commits

Tags: #lldb

Differential Revision: https://reviews.llvm.org/D78462




More information about the All-commits mailing list