[llvm] [llvm-readobj] Dump callgraph section info for ELF (PR #157499)
Paul Kirth via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 22 14:06:11 PDT 2025
================
@@ -433,6 +461,23 @@ template <typename ELFT> class ELFDumper : public ObjDumper {
const typename SFrameParser<ELFT::Endianness>::FDERange::iterator FDE,
ArrayRef<Relocation<ELFT>> Relocations, const Elf_Shdr *RelocSymTab);
+ using FunctionCallgraphInfo =
+ ::FunctionCallgraphInfoImpl<typename ELFT::uint>;
+
+ // Callgraph - Main data structure to maintain per function callgraph
+ // information.
+ MapVector<typename ELFT::uint, FunctionCallgraphInfo> FuncCGInfos;
+
+ // // Callgraph - 64 bit type id mapped to entry PC addresses of functions
+ // which
+ // // are of the given type id.
----------------
ilovepi wrote:
```suggestion
// Callgraph - 64 bit type id mapped to entry PC addresses of functions
// which are of the given type id.
```
https://github.com/llvm/llvm-project/pull/157499
More information about the llvm-commits
mailing list