@@ -61,8 +61,13 @@ class AArch64PrologueEpilogueCommon {
6161 const AArch64FrameLowering &AFL;
6262 const AArch64RegisterInfo &RegInfo;
6363
64+ // Common flags. These generally should not change outside of the (possibly
65+ // derived) constructor.
6466 bool HasFP = false ;
65- bool NeedsWinCFI = false ;
67+ bool EmitCFI = false ; // Note: Set in derived constructors.
68+ bool IsFunclet = false ; // Note: Set in derived constructors.
69+ bool NeedsWinCFI = false ; // Note: Can be changed in emitFramePointerSetup.
70+ bool HomPrologEpilog = false ; // Note: Set in derived constructors.
6671
6772 // Note: "HasWinCFI" is mutable as it can change in any "emit" function.
6873 mutable bool HasWinCFI = false ;
@@ -132,14 +137,9 @@ class AArch64PrologueEmitter final : public AArch64PrologueEpilogueCommon {
132137#endif
133138
134139 // Prologue flags. These generally should not change outside of the
135- // constructor. Two exceptions are "CombineSPBump" which is set in
136- // determineLocalsStackSize, and "NeedsWinCFI" which is set in
137- // emitFramePointerSetup.
138- bool EmitCFI = false ;
140+ // constructor.
139141 bool EmitAsyncCFI = false ;
140- bool IsFunclet = false ;
141- bool CombineSPBump = false ;
142- bool HomPrologEpilog = false ;
142+ bool CombineSPBump = false ; // Note: This is set in determineLocalsStackSize.
143143};
144144
145145// / A helper class for emitting the epilogue. Substantial new functionality
@@ -178,13 +178,8 @@ class AArch64EpilogueEmitter final : public AArch64PrologueEpilogueCommon {
178178
179179 void finalizeEpilogue () const ;
180180
181- // Epilogue flags. These generally should not change outside of the
182- // constructor (or early in emitEpilogue).
183- bool EmitCFI = false ;
184- bool IsFunclet = false ;
185-
186- DebugLoc DL;
187181 MachineBasicBlock::iterator SEHEpilogueStartI;
182+ DebugLoc DL;
188183};
189184
190185} // namespace llvm
0 commit comments