diff options
| author | eddyz87 <eddyz87@gmail.com> | 2024-07-31 08:52:34 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-31 08:52:34 +0300 |
| commit | ee1040b02adc95e376b295c4f59d30b991a8be9a (patch) | |
| tree | 390036073f7929286a709d26c1222ac94aba578b /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp | |
| parent | 7a80c86726f7c37128bfee3618707c1607f5014d (diff) | |
[llvm-objdump][BPF] --symbolize-operands: infer local labels for BPF (#100550)
Enable local labels computation for BPF disassembly when
`--symbolize-operands` option is specified.
This relies on `MCInstrAnalysis::evaluateBranch()` method, which is
already defined in `BPFMCInstrAnalysis::evaluateBranch`.
After this change the assembly code below:
if r1 > 42 goto +1
r1 -= 10
...
Would be printed as:
if r1 > 42 goto +1 <L0>
r1 -= 10
<L0>:
...
(when `--symbolize-operands` option is set).
See https://reviews.llvm.org/D84191 for the main part of the
`--symbolize-operands` implementation logic.
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp')
0 files changed, 0 insertions, 0 deletions
