[llvm] [CodeGen] Port `StackProtector` to new pass manager (PR #75334)

via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 9 00:07:29 PST 2024


================
@@ -57,26 +109,14 @@ class StackProtector : public FunctionPass {
 
   /// The minimum size of buffers that will receive stack smashing
   /// protection when -fstack-protection is used.
-  unsigned SSPBufferSize = DefaultSSPBufferSize;
+  unsigned SSPBufferSize = SSPLayoutInfo::DefaultSSPBufferSize;
 
   // A prologue is generated.
   bool HasPrologue = false;
 
   // IR checking code is generated.
   bool HasIRCheck = false;
----------------
paperchalice wrote:

Merge them into one member `LayoutInfo`, but still need to keep the interface as an analysis pass.

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


More information about the llvm-commits mailing list