Add member EmitNOAT and its setter and getter functions to class MipsFunctionInfo.
If EmitNOAT is true, directives ".set noat" and ".set at" are emitted at the beginning and end of a function. llvm-svn: 153528
This commit is contained in:
parent
a956450eb7
commit
a25fe22198
|
@ -49,12 +49,14 @@ class MipsFunctionInfo : public MachineFunctionInfo {
|
|||
mutable int DynAllocFI; // Frame index of dynamically allocated stack area.
|
||||
unsigned MaxCallFrameSize;
|
||||
|
||||
bool EmitNOAT;
|
||||
|
||||
public:
|
||||
MipsFunctionInfo(MachineFunction& MF)
|
||||
: MF(MF), SRetReturnReg(0), GlobalBaseReg(0),
|
||||
VarArgsFrameIndex(0), InArgFIRange(std::make_pair(-1, 0)),
|
||||
OutArgFIRange(std::make_pair(-1, 0)), GPFI(0), DynAllocFI(0),
|
||||
MaxCallFrameSize(0)
|
||||
MaxCallFrameSize(0), EmitNOAT(false)
|
||||
{}
|
||||
|
||||
bool isInArgFI(int FI) const {
|
||||
|
@ -99,6 +101,9 @@ public:
|
|||
|
||||
unsigned getMaxCallFrameSize() const { return MaxCallFrameSize; }
|
||||
void setMaxCallFrameSize(unsigned S) { MaxCallFrameSize = S; }
|
||||
|
||||
bool getEmitNOAT() const { return EmitNOAT; }
|
||||
void setEmitNOAT() { EmitNOAT = true; }
|
||||
};
|
||||
|
||||
} // end of namespace llvm
|
||||
|
|
Loading…
Reference in New Issue