[Object] Extract format-agnostic BBAddrMap decoder This is part of patches to port BBAddrMap to COFF. Move format-agnostic BBAddrMap decode logic out of ELF.cpp into BBAddrMap.cpp, and expose a shared decodeBBAddrMapPayload helper in BBAddrMap.h. Keep ELF-specific steps (section decompression and relocation translation) in ELF.cpp, and delegate payload decoding to the shared helper. Error messages in the decoder are updated to use the generic "BB address map" instead of the ELF-specific "SHT_LLVM_BB_ADDR_MAP" since the decoder is now shared across object formats. This refactor prepares follow-up work to let COFF and ELF share the same BBAddrMap decoding logic.
28 KiB
28 KiB