[llvm-branch-commits] [llvm] [llvm] Add option to emit `callgraph` section (PR #87574)

Paul Kirth via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Mon Mar 17 14:05:40 PDT 2025


================
@@ -576,6 +576,9 @@ void MIRPrinter::convertCallSiteObjects(yaml::MachineFunction &YMF,
       printRegMIR(ArgReg.Reg, YmlArgReg.Reg, TRI);
       YmlCS.ArgForwardingRegs.emplace_back(YmlArgReg);
     }
+    // Get type id.
+    if (CSInfo.second.TypeId)
+      YmlCS.TypeId = CSInfo.second.TypeId->getZExtValue();
----------------
ilovepi wrote:

This would be nicer w/ C++17 destructuring. That's probably a bit invasive for this patch since you'd have to change a bunch of unrelated code, but is something that could land as a separate NFC PR relatively quickly.

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


More information about the llvm-branch-commits mailing list