diff options
| author | maksfb <maks@fb.com> | 2023-11-06 11:41:47 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-06 11:41:47 -0800 |
| commit | e28c393bd1c1f22f229d156b0b8283746cdac322 (patch) | |
| tree | 3ab383d5d40898bec551f147946313c6b1f63741 /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp | |
| parent | 565e21b3e079e53c4fcf47d2ec898dbc248fbd3a (diff) | |
[BOLT] Reduce the number of emitted symbols. NFCI. (#70175)
We emit a symbol before an instruction for a number of reasons, e.g. for
tracking LocSyms, debug line, or if the instruction has a label
annotation. Currently, we may emit multiple symbols per instruction.
Reuse the same label instead of creating and emitting new ones when
possible. I'm planning to refactor EH labels as well in a separate diff.
Change getLabel() to return a pointer instead of std::optional<> since
an empty label should be treated identically to no label.
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp')
0 files changed, 0 insertions, 0 deletions
