[llvm] [CodeGen] Port `GCInfoPrinter` to new pass manager (PR #74972)

via llvm-commits llvm-commits at lists.llvm.org
Sun Dec 10 18:42:05 PST 2023


================
@@ -84,6 +142,36 @@ void GCModuleInfo::clear() {
 
 // -----------------------------------------------------------------------------
 
+PreservedAnalyses GCInfoPrinterPass::run(Function &F,
+                                         FunctionAnalysisManager &FAM) {
+  if (F.isDeclaration() || !F.hasGC())
+    return PreservedAnalyses::all();
+
+  auto &Info = FAM.getResult<GCFunctionAnalysis>(F);
----------------
paperchalice wrote:

Move to `printGCInfo` now.

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


More information about the llvm-commits mailing list