[llvm] [llvm-profgen] Loading binary functions from .symtab when DWARF info is incomplete (PR #163654)

via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 27 13:59:33 PDT 2025


================
@@ -820,6 +830,54 @@ void ProfiledBinary::populateSymbolAddressList(const ObjectFile *Obj) {
   }
 }
 
+void ProfiledBinary::populateSymbolsFromBinary(const ObjectFile *Obj) {
+  // Load binary functions from symbol table when Debug info is incomplete
+  const SmallVector<StringRef> Suffixes(
----------------
WenleiHe wrote:

This does not need to cover .llvm, .unique, .part... etc? 

Add a comment to explain why we care about different suffixes? 

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


More information about the llvm-commits mailing list