[llvm] [SystemZ] Add proper mcount handling (PR #135767)

Dominik Steenken via llvm-commits llvm-commits at lists.llvm.org
Fri May 2 01:58:36 PDT 2025


================
@@ -63,6 +63,12 @@ static void insertCall(Function &CurFn, StringRef Func,
                                   false));
       CallInst *Call = CallInst::Create(Fn, RetAddr, "", InsertionPt);
       Call->setDebugLoc(DL);
+    } else if (TargetTriple.isSystemZ()) {
+      M.getOrInsertFunction(Func, Type::getVoidTy(C));
----------------
dominik-steenken wrote:

I have moved the creation of the function into the backend as requested.

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


More information about the llvm-commits mailing list