[llvm] [SHT_LLVM_BB_ADDR_MAP][obj2yaml] Implements PGOAnalysisMap for elf2yaml and tests. (PR #80924)

Rahman Lavaee via llvm-commits llvm-commits at lists.llvm.org
Sat Feb 10 23:36:56 PST 2024


================
@@ -889,6 +889,8 @@ ELFDumper<ELFT>::dumpBBAddrMapSection(const Elf_Shdr *Shdr) {
   DataExtractor Data(Content, Obj.isLE(), ELFT::Is64Bits ? 8 : 4);
 
   std::vector<ELFYAML::BBAddrMapEntry> Entries;
+  bool FoundPGOAnalysis = false;
----------------
rlavaee wrote:

Maybe a better name is `HasAnyPGOAnalysisMapEntry` to stress that this is over the entire section.

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


More information about the llvm-commits mailing list