eliminate nontrivial Reset(...) from TypedPythonObject
authorLawrence D'Anna <lawrence_danna@apple.com>
Sat, 19 Oct 2019 18:43:49 +0000 (18:43 +0000)
committerLawrence D'Anna <lawrence_danna@apple.com>
Sat, 19 Oct 2019 18:43:49 +0000 (18:43 +0000)
commit722b61892454b3217d73ec486e52156c5a92b5b3
tree0dff7e23c3fbcf53f0ca7c9b7555687b7df0c95d
parent1d509201e2d2e926654ef762524754311fafcd59
eliminate nontrivial Reset(...) from TypedPythonObject

Summary:
This deletes `Reset(...)`, except for the no-argument form `Reset()`
from `TypedPythonObject`, and therefore from `PythonString`, `PythonList`,
etc.

It updates the various callers to use assignment, `As<>`, `Take<>`,
and `Retain<>`, as appropriate.

followon to https://reviews.llvm.org/D69080

Reviewers: JDevlieghere, clayborg, labath, jingham

Reviewed By: labath

Subscribers: lldb-commits

Tags: #lldb

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

llvm-svn: 375350
lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp
lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h
lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
lldb/unittests/ScriptInterpreter/Python/PythonDataObjectsTests.cpp