[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 Mar 12 23:01:33 PDT 2025


================
@@ -1948,6 +2047,26 @@ void AsmPrinter::emitFunctionBody() {
         break;
       }
 
+      // FIXME: Some indirect calls can get lowered to jump instructions,
+      // resulting in emitting labels for them. The extra information can
+      // be neglected while disassembling but still takes space in the binary.
+      if (TM.Options.EmitCallGraphSection && MI.isCall()) {
----------------
arsenm wrote:

Make sure there's a test that has a tail call that hits this too 

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


More information about the llvm-branch-commits mailing list