mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-25 13:16:08 +00:00

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.