diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2017-04-16 16:01:22 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2017-04-16 16:01:22 +0000 |
commit | 71d5a2540a98c81f5bcaeb48805e0e2881f530ef (patch) | |
tree | 5343938942df402b49ec7300a1c25a2d4ccd5821 /lib/Target/XCore/XCoreMachineFunctionInfo.h | |
parent | 31bbf64f3a4974a2d6c8b3b27ad2f519caf74057 (diff) |
Diffstat (limited to 'lib/Target/XCore/XCoreMachineFunctionInfo.h')
-rw-r--r-- | lib/Target/XCore/XCoreMachineFunctionInfo.h | 44 |
1 files changed, 17 insertions, 27 deletions
diff --git a/lib/Target/XCore/XCoreMachineFunctionInfo.h b/lib/Target/XCore/XCoreMachineFunctionInfo.h index cdcc52fdc32d..cf469ec3cf1a 100644 --- a/lib/Target/XCore/XCoreMachineFunctionInfo.h +++ b/lib/Target/XCore/XCoreMachineFunctionInfo.h @@ -14,50 +14,39 @@ #ifndef LLVM_LIB_TARGET_XCORE_XCOREMACHINEFUNCTIONINFO_H #define LLVM_LIB_TARGET_XCORE_XCOREMACHINEFUNCTIONINFO_H +#include "llvm/CodeGen/MachineBasicBlock.h" #include "llvm/CodeGen/MachineFrameInfo.h" #include "llvm/CodeGen/MachineFunction.h" +#include <cassert> +#include <utility> #include <vector> namespace llvm { -// Forward declarations -class Function; - /// XCoreFunctionInfo - This class is derived from MachineFunction private /// XCore target-specific information for each MachineFunction. class XCoreFunctionInfo : public MachineFunctionInfo { - virtual void anchor(); - bool LRSpillSlotSet; + bool LRSpillSlotSet = false; int LRSpillSlot; - bool FPSpillSlotSet; + bool FPSpillSlotSet = false; int FPSpillSlot; - bool EHSpillSlotSet; + bool EHSpillSlotSet = false; int EHSpillSlot[2]; unsigned ReturnStackOffset; - bool ReturnStackOffsetSet; - int VarArgsFrameIndex; - mutable int CachedEStackSize; + bool ReturnStackOffsetSet = false; + int VarArgsFrameIndex = 0; + mutable int CachedEStackSize = -1; std::vector<std::pair<MachineBasicBlock::iterator, CalleeSavedInfo>> SpillLabels; + virtual void anchor(); + public: - XCoreFunctionInfo() : - LRSpillSlotSet(false), - FPSpillSlotSet(false), - EHSpillSlotSet(false), - ReturnStackOffsetSet(false), - VarArgsFrameIndex(0), - CachedEStackSize(-1) {} + XCoreFunctionInfo() = default; - explicit XCoreFunctionInfo(MachineFunction &MF) : - LRSpillSlotSet(false), - FPSpillSlotSet(false), - EHSpillSlotSet(false), - ReturnStackOffsetSet(false), - VarArgsFrameIndex(0), - CachedEStackSize(-1) {} + explicit XCoreFunctionInfo(MachineFunction &MF) {} - ~XCoreFunctionInfo() {} + ~XCoreFunctionInfo() override = default; void setVarArgsFrameIndex(int off) { VarArgsFrameIndex = off; } int getVarArgsFrameIndex() const { return VarArgsFrameIndex; } @@ -101,6 +90,7 @@ public: return SpillLabels; } }; -} // End llvm namespace -#endif +} // end namespace llvm + +#endif // LLVM_LIB_TARGET_XCORE_XCOREMACHINEFUNCTIONINFO_H |