[llvm] [llvm-objdump][BPF] infer local label names in BPF disassembly (PR #100550)

via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 26 21:32:42 PDT 2024


https://github.com/yonghong-song approved this pull request.

This patch looks good to me. But it looks like we still need --symbolize-operands in order to emit labels. So with this patch, there are two ways to emit labels:
   (1). llvm-objdump --symbolize-operands ..., or
   (2). add '-Wa,-L' to compilation flags so labels in symbol table. The variant of (2) will be that enable labels in symbol table by BPF backend.
   
 It would be great if user does not need to learn '--symbolize-operands' or '-Wa,-L' which is not needed before llvm19.
 
 But in any case, this patch looks good.

https://github.com/llvm/llvm-project/pull/100550


More information about the llvm-commits mailing list