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

via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 21 00:28:22 PST 2023


================
@@ -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:

Replace these fields with new a member `SSPLayoutInfo Info;` is OK, just to want to modify the old code as little as possible.

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


More information about the llvm-commits mailing list