[llvm] [CodeGen] Port mir-strip-debug to new pass manager (PR #190738)

Aiden Grossman via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 7 13:01:34 PDT 2026


================
@@ -103,6 +115,23 @@ INITIALIZE_PASS_BEGIN(StripDebugMachineModule, DEBUG_TYPE,
 INITIALIZE_PASS_END(StripDebugMachineModule, DEBUG_TYPE,
                     "Machine Strip Debug Module", false, false)
 
-ModulePass *llvm::createStripDebugMachineModulePass(bool OnlyDebugified) {
+ModulePass *llvm::createStripDebugMachineModuleLegacyPass(bool OnlyDebugified) {
   return new StripDebugMachineModule(OnlyDebugified);
 }
+
+PreservedAnalyses StripDebugMachineModulePass::run(Module &M,
+                                                   ModuleAnalysisManager &AM) {
+  FunctionAnalysisManager &FAM =
+      AM.getResult<FunctionAnalysisManagerModuleProxy>(M).getManager();
+  auto GetMF = [&FAM](Function &F) {
----------------
boomanaiden154 wrote:

Same here.

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


More information about the llvm-commits mailing list