[llvm] [CodeGen][NewPM] Port `AsmPrinter` to new pass manager (PR #99320)

via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 24 03:10:31 PDT 2025


================
@@ -4454,6 +4533,26 @@ void AsmPrinter::emitStackMaps() {
     SM.serializeToStackMapSection();
 }
 
+void AsmPrinter::emitStackMaps(Module &M) {
+  auto &Map = MAM->getResult<CollectorMetadataAnalysis>(M);
+  bool NeedsDefault = false;
+  if (Map.empty())
+    // No GC strategy, use the default format.
----------------
paperchalice wrote:

This result is used in some gc lowering passes.

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


More information about the llvm-commits mailing list