aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/Target/X86/X86MachineFunctionInfo.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/Target/X86/X86MachineFunctionInfo.h b/lib/Target/X86/X86MachineFunctionInfo.h
index 9da2bf901b..ce7eebee7d 100644
--- a/lib/Target/X86/X86MachineFunctionInfo.h
+++ b/lib/Target/X86/X86MachineFunctionInfo.h
@@ -18,8 +18,14 @@
namespace llvm {
+/// X86FunctionInfo - This class is derived from MachineFunction private
+/// X86 target-specific information for each MachineFunction.
class X86FunctionInfo : public MachineFunctionInfo {
- bool ForceFramePointer; // Function requires use of frame pointer.
+ // ForceFramePointer - True if the function is required to use of frame
+ // pointer for reasons other than it containing dynamic allocation or
+ // that FP eliminatation is turned off. For example, Cygwin main function
+ // contains stack pointer re-alignment code which requires FP.
+ bool ForceFramePointer;
public:
X86FunctionInfo(MachineFunction& MF) : ForceFramePointer(false) {}
bool getForceFramePointer() const { return ForceFramePointer;}