[llvm] [llvm-profgen] Loading binary functions from .symtab when DWARF info is incomplete (PR #163654)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 2 11:54:44 PST 2025
================
@@ -820,6 +839,95 @@ void ProfiledBinary::populateSymbolAddressList(const ObjectFile *Obj) {
}
}
+void ProfiledBinary::loadSymbolsFromSymtab(const ObjectFile *Obj) {
+ // Load binary functions from symbol table when Debug info is incomplete.
+ // Strip the internal suffixes which are not reflected in the DWARF info.
+ const SmallVector<StringRef, 10> Suffixes(
----------------
HighW4y2H3ll wrote:
`BinaryFunction` might have multiple overloaded names from symbol table and DWARF, so I'm keeping its DWARF name here and tracking all the alternative names in a separate mapping. The idea is to use symbol table names just as a reference in case the DWARF name doesn't match with the pseudo probe...
https://github.com/llvm/llvm-project/pull/163654
More information about the llvm-commits
mailing list