summaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
diff options
context:
space:
mode:
authorMaksim Panchenko <maks@fb.com>2024-02-27 18:44:28 -0800
committerGitHub <noreply@github.com>2024-02-27 18:44:28 -0800
commit7c206c7812408f152baffa3c73f765b7d9ffdf18 (patch)
treef3641def0dbb62c3cf7678cefe285f625b00036f /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
parent1f2a1a72ae6615ce80fcd6f1185d1cde607377d2 (diff)
[BOLT] Refactor interface for instruction labels. NFCI (#83209)
To avoid accidentally setting the label twice for the same instruction, which can lead to a "lost" label, introduce getOrSetInstLabel() function. Rename existing functions to getInstLabel()/setInstLabel() to make it explicit that they operate on instruction labels. Add an assertion in setInstLabel() that the instruction did not have a prior label set.
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp')
0 files changed, 0 insertions, 0 deletions