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

Haohai Wen via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 20 20:07:30 PDT 2025


================
@@ -482,6 +483,10 @@ inline uint64_t SymbolRef::getCommonSize() const {
   return getObject()->getCommonSymbolSize(getRawDataRefImpl());
 }
 
+inline uint64_t SymbolRef::getSize() const {
+  return getObject()->getCommonSymbolSizeImpl(getRawDataRefImpl());
----------------
HaohaiWen wrote:

For COFF. getCommonSymbolSizeImpl returns symbol value which is start address offset of this function.
https://github.com/llvm/llvm-project/blob/7a5435351d7cc26e6e3d7d66c3b5317e217521bf/llvm/lib/Object/COFFObjectFile.cpp#L240-L243

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


More information about the llvm-commits mailing list