diff options
| author | David Stenberg <david.stenberg@ericsson.com> | 2023-03-06 11:18:24 +0100 |
|---|---|---|
| committer | David Stenberg <david.stenberg@ericsson.com> | 2023-03-06 14:23:29 +0100 |
| commit | 98c3dc3fa748072fc42054fb90b295c2d5190bfe (patch) | |
| tree | aa4c02d8d41953a9717337c82f051901cf2f07e6 /lldb/source/Plugins/ScriptInterpreter/Python/ScriptedPythonInterface.h | |
| parent | 33a13f300bd6fa05b306146e54c2d7d2dd600aae (diff) | |
| download | llvm-98c3dc3fa748072fc42054fb90b295c2d5190bfe.zip llvm-98c3dc3fa748072fc42054fb90b295c2d5190bfe.tar.gz llvm-98c3dc3fa748072fc42054fb90b295c2d5190bfe.tar.bz2 | |
[lldb] Make GetDIENamesAndRanges() allow 0-valued decl and call lines
In an upcoming patch, D142556, Clang is proposed to be changed to emit
line locations that are inlined at line 0. This clashed with the behavior of
GetDIENamesAndRanges() which used 0 as a default value to determine if
file, line or column numbers had been set. Users of that function then
checked for any non-0 values when setting up the call site:
if (call_file != 0 || call_line != 0 || call_column != 0)
[...]
which did not work with the Clang change since all three values then
could be 0.
This changes the function to use std::optional to catch non-set values
instead.
Reviewed By: clayborg
Differential Revision: https://reviews.llvm.org/D142552
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptedPythonInterface.h')
0 files changed, 0 insertions, 0 deletions
