[all-commits] [llvm/llvm-project] c06752: [SHT_LLVM_BB_ADDR_MAP] Add assertion and clarify d...

Aiden Grossman via All-commits all-commits at lists.llvm.org
Fri Jan 19 11:34:12 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c067524852816c9f6a99ddbb888cd33b9c5a2042
      https://github.com/llvm/llvm-project/commit/c067524852816c9f6a99ddbb888cd33b9c5a2042
  Author: Aiden Grossman <agrossman154 at yahoo.com>
  Date:   2024-01-19 (Fri, 19 Jan 2024)

  Changed paths:
    M llvm/include/llvm/Object/ELFObjectFile.h
    M llvm/lib/Object/ELFObjectFile.cpp

  Log Message:
  -----------
  [SHT_LLVM_BB_ADDR_MAP] Add assertion and clarify docstring (#77374)

This patch adds an assertion to readBBAddrMapImpl to confirm that
PGOAnalyses and BBAddrMaps are of the same size when PGO information is
requested (part of the API contract). This patch also updates the
docstring for readBBAddrMap to better clarify what is guaranteed.




More information about the All-commits mailing list