[llvm] [lld] [clang] [SHT_LLVM_BB_ADDR_MAP] Allow basic-block-sections and labels be used together by decoupling the handling of the two features. (PR #74128)
Micah Weston via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 8 14:47:45 PST 2024
================
@@ -7574,30 +7573,38 @@ template <class ELFT> void LLVMELFDumper<ELFT>::printBBAddrMaps() {
continue;
}
for (const BBAddrMap &AM : *BBAddrMapOrErr) {
- DictScope D(W, "Function");
- W.printHex("At", AM.Addr);
+ DictScope FD(W, "Function");
+ if (AM.BBRanges.empty())
----------------
red1bluelost wrote:
Are there scenarios where BBRanges would be completely empty? If so, what are those scenarios?
https://github.com/llvm/llvm-project/pull/74128
More information about the llvm-commits
mailing list