[llvm] [ObjectYAML][NFC] Make BBAddrMap encoder diagnostics format-neutral (PR #202524)
James Henderson via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 10 00:58:31 PDT 2026
================
@@ -1464,20 +1464,18 @@ void ELFState<ELFT>::writeSectionContent(
for (const auto &[Idx, E] : llvm::enumerate(*Section.Entries)) {
// Write version and feature values.
- if (Section.Type == llvm::ELF::SHT_LLVM_BB_ADDR_MAP) {
- if (E.Version > 5)
- WithColor::warning() << "unsupported SHT_LLVM_BB_ADDR_MAP version: "
- << static_cast<int>(E.Version)
- << "; encoding using the most recent version";
- CBA.write(E.Version);
+ if (E.Version > 5)
+ WithColor::warning() << "unsupported BB address map version: "
+ << static_cast<int>(E.Version)
+ << "; encoding using the most recent version";
+ CBA.write(E.Version);
----------------
jh7370 wrote:
I don't think this needs addressing.
https://github.com/llvm/llvm-project/pull/202524
More information about the llvm-commits
mailing list