[llvm-branch-commits] [llvm] [llvm][AsmPrinter] Emit call graph section (PR #87576)

Matt Arsenault via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Wed Apr 23 02:46:04 PDT 2025


================
@@ -356,6 +356,13 @@ class AsmPrinter : public MachineFunctionPass {
     DwarfUsesRelocationsAcrossSections = Enable;
   }
 
+  /// Generate and emit labels for callees of the indirect callsites which will
+  /// be used to populate the .callgraph section.
+  void emitIndirectCalleeLabels(
+      FunctionInfo &FuncInfo,
+      const MachineFunction::CallSiteInfoMap &CallSitesInfoMap,
+      MachineInstr &MI);
----------------
arsenm wrote:

```suggestion
      const MachineInstr &MI);
```

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


More information about the llvm-branch-commits mailing list