[llvm] CodeGen: Use LibcallLoweringInfo for stack protector insertion (PR #176829)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 20 03:13:41 PST 2026
================
@@ -30099,16 +30100,17 @@ Value *AArch64TargetLowering::getIRStackGuard(IRBuilderBase &IRB) const {
if (Subtarget->isTargetFuchsia())
return UseTlsOffset(IRB, -0x10);
- return TargetLowering::getIRStackGuard(IRB);
+ return TargetLowering::getIRStackGuard(IRB, Libcalls);
}
-void AArch64TargetLowering::insertSSPDeclarations(Module &M) const {
+void AArch64TargetLowering::insertSSPDeclarations(
+ Module &M, const LibcallLoweringInfo &Libcalls) const {
// MSVC CRT provides functionalities for stack protection.
RTLIB::LibcallImpl SecurityCheckCookieLibcall =
- getLibcallImpl(RTLIB::SECURITY_CHECK_COOKIE);
----------------
arsenm wrote:
Eventually but it can't be yet
https://github.com/llvm/llvm-project/pull/176829
More information about the llvm-commits
mailing list