[llvm] Implements PGOBBAddrMap in Object and ObjectYAML with tests [1/5] (PR #71750)

Micah Weston via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 29 17:02:12 PST 2023


================
@@ -706,10 +718,21 @@ ELFFile<ELFT>::decodeBBAddrMap(const Elf_Shdr &Sec,
       if (Version > 2)
         return createError("unsupported SHT_LLVM_BB_ADDR_MAP version: " +
                            Twine(static_cast<int>(Version)));
-      Data.getU8(Cur); // Feature byte
+      Feature = Data.getU8(Cur); // Feature byte
+      FuncEntryCountEnabled =
----------------
red1bluelost wrote:

I like that idea, implemented.

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


More information about the llvm-commits mailing list