llvm-project/llvm/unittests/Object
Rahman Lavaee 5f7ef65245 [llvm-objdump] Let --symbolize-operands symbolize basic block addresses based on the SHT_LLVM_BB_ADDR_MAP section.
`--symbolize-operands` already symbolizes branch targets based on the disassembly. When the object file is created with `-fbasic-block-sections=labels` (ELF-only) it will include a SHT_LLVM_BB_ADDR_MAP section which maps basic blocks to their addresses. In such case `llvm-objdump` can annotate the disassembly based on labels inferred on this section.

In contrast to the current labels, SHT_LLVM_BB_ADDR_MAP-based labels are created for every machine basic block including empty blocks and those which are not branched into (fallthrough blocks).

The old logic is still executed even when the SHT_LLVM_BB_ADDR_MAP section is present to handle functions which have not been received an entry in this section.

Reviewed By: jhenderson, MaskRay

Differential Revision: https://reviews.llvm.org/D124560
2022-05-16 10:11:11 -07:00
..
ArchiveTest.cpp
CMakeLists.txt [Object][DX] Initial DXContainer parsing support 2022-05-02 13:56:33 -05:00
DXContainerTest.cpp Fix DXBC magic parsing 2022-05-03 14:41:48 -07:00
ELFObjectFileTest.cpp [llvm-objdump] Let --symbolize-operands symbolize basic block addresses based on the SHT_LLVM_BB_ADDR_MAP section. 2022-05-16 10:11:11 -07:00
ELFTest.cpp [LoongArch 2/6] Add ELF machine flag and relocs for upcoming LoongArch target 2022-02-10 10:23:34 +00:00
ELFTypesTest.cpp
MinidumpTest.cpp
ObjectFileTest.cpp
OffloadingTest.cpp [Object] Add binary format for bundling offloading metadata 2022-04-14 10:50:52 -04:00
SymbolSizeTest.cpp
SymbolicFileTest.cpp
XCOFFObjectFileTest.cpp