[llvm] [llvm-readobj] Print all callgraph sections (PR #198929)
James Henderson via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 2 01:06:39 PDT 2026
================
@@ -8338,101 +8338,108 @@ template <class ELFT> void LLVMELFDumper<ELFT>::printCallGraphInfo() {
return;
}
- // Process and print the first SHT_LLVM_CALL_GRAPH type section found.
- if (!this->processCallGraphSection(MapOrErr->begin()->first) ||
- this->FuncCGInfos.empty())
- return;
+ std::unique_ptr<ListScope> CGI;
+ SmallVector<FunctionCallgraphInfo, 16> FuncCGInfos;
----------------
jh7370 wrote:
Can this be declared inside the loop? It's cleared every loop iteration, so there doesn't seem to be much point in it being declared outside the loop.
https://github.com/llvm/llvm-project/pull/198929
More information about the llvm-commits
mailing list