diff options
| author | Nikita Popov <npopov@redhat.com> | 2022-07-21 12:10:36 +0200 |
|---|---|---|
| committer | Nikita Popov <npopov@redhat.com> | 2022-07-21 12:39:35 +0200 |
| commit | c81dff3c306dd1a26e5f6377a040f811c325ba76 (patch) | |
| tree | cfedd4f206146a3f5999c3388f47dd72727ccb93 /lldb/source/Plugins/ScriptInterpreter/Python/ScriptedProcessPythonInterface.cpp | |
| parent | d2a4d6bf9c52861f3d418bf7bb7d05f6e74dfead (diff) | |
[MemoryBuiltins] Add getFreedOperand() function (NFCI)
We currently assume in a number of places that free-like functions
free their first argument. This is true for all hardcoded free-like
functions, but with the new attribute-based design, the freed
argument is supposed to be indicated by the allocptr attribute.
To make sure we handle this correctly once allockind(free) is
respected, add a getFreedOperand() helper which returns the freed
argument, rather than just indicating whether the call frees *some*
argument.
This migrates most but not all users of isFreeCall() to the new
API. The remaining users are a bit more tricky.
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptedProcessPythonInterface.cpp')
0 files changed, 0 insertions, 0 deletions
