forked from OSchip/llvm-project
[mips] Move the setATReg definition inside the MipsAssemblerOptions class. NFC.
Summary: This groups all of the MipsAssemblerOptions functionality together, making it more reader-friendly. Reviewers: dsanders Reviewed By: dsanders Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D8445 llvm-svn: 233271
This commit is contained in:
parent
8f7feec5fd
commit
92dbbf1700
|
@ -54,7 +54,13 @@ public:
|
|||
}
|
||||
|
||||
unsigned getATRegNum() const { return ATReg; }
|
||||
bool setATReg(unsigned Reg);
|
||||
bool setATReg(unsigned Reg) {
|
||||
if (Reg > 31)
|
||||
return false;
|
||||
|
||||
ATReg = Reg;
|
||||
return true;
|
||||
}
|
||||
|
||||
bool isReorder() const { return Reorder; }
|
||||
void setReorder() { Reorder = true; }
|
||||
|
@ -2377,14 +2383,6 @@ int MipsAsmParser::matchMSA128CtrlRegisterName(StringRef Name) {
|
|||
return CC;
|
||||
}
|
||||
|
||||
bool MipsAssemblerOptions::setATReg(unsigned Reg) {
|
||||
if (Reg > 31)
|
||||
return false;
|
||||
|
||||
ATReg = Reg;
|
||||
return true;
|
||||
}
|
||||
|
||||
int MipsAsmParser::getATReg(SMLoc Loc) {
|
||||
int AT = AssemblerOptions.back()->getATRegNum();
|
||||
if (AT == 0)
|
||||
|
|
Loading…
Reference in New Issue