summaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
diff options
context:
space:
mode:
authormaksfb <maks@fb.com>2023-11-06 11:41:47 -0800
committerGitHub <noreply@github.com>2023-11-06 11:41:47 -0800
commite28c393bd1c1f22f229d156b0b8283746cdac322 (patch)
tree3ab383d5d40898bec551f147946313c6b1f63741 /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
parent565e21b3e079e53c4fcf47d2ec898dbc248fbd3a (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