[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 Oct 28 10:39:31 PDT 2025
================
@@ -257,6 +264,9 @@ void ProfiledBinary::load() {
if (ShowDisassemblyOnly)
decodePseudoProbe(Obj);
+ if (LoadFunctionFromSymbol && UsePseudoProbes)
----------------
HighW4y2H3ll wrote:
Ohh, this is to be compatible with the code here:
https://github.com/llvm/llvm-project/blob/af110e15c3cf2b964fb6a399163663e77c0730d1/llvm/tools/llvm-profgen/ProfileGenerator.cpp#L510-L514
`UsePseudoProbes` is needed so we won't use line numbers to generate profile, which won't work with symtab because symtab only have addresses
https://github.com/llvm/llvm-project/pull/163654
More information about the llvm-commits
mailing list