[llvm] [CodeGen] Port mir-debugify to new pass manager (PR #193201)

via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 30 05:05:22 PDT 2026


================
@@ -97,6 +97,9 @@ LLVM_ABI bool checkDebugInfoMetadata(Module &M,
 /// Used to check whether we track synthetic or original debug info.
 enum class DebugifyMode { NoDebugify, SyntheticDebugInfo, OriginalDebugInfo };
 
+using DebugifyApplyToMFCallback = bool (*)(llvm::DIBuilder &, llvm::Function &,
----------------
juanvazquez wrote:

Thanks both of you. Looks like `function_ref` is enough in this use case, so I've gone with it and updated the code to use it.

@paperchalice if you feel otherwise, feel free to comment.

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


More information about the llvm-commits mailing list