llvm.org GIT mirror llvm / a581c51
Merging r217254: ------------------------------------------------------------------------ r217254 | tomatabacu | 2014-09-05 16:43:21 +0100 (Fri, 05 Sep 2014) | 9 lines [mips] Rename data members and member functions in MipsAssemblerOptions. Summary: Use the naming convention from the LLVM Coding Standards. Reviewers: dsanders Reviewed By: dsanders Differential Revision: http://reviews.llvm.org/D4972 ------------------------------------------------------------------------ git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_35@232054 91177308-0d34-0410-b5e6-96231b3b80d8 Daniel Sanders 5 years ago
1 changed file(s) with 16 addition(s) and 16 deletion(s). Raw diff Collapse all Expand all
3737 namespace {
3838 class MipsAssemblerOptions {
3939 public:
40 MipsAssemblerOptions() : aTReg(1), reorder(true), macro(true) {}
41
42 unsigned getATRegNum() { return aTReg; }
40 MipsAssemblerOptions() : ATReg(1), Reorder(true), Macro(true) {}
41
42 unsigned getATRegNum() { return ATReg; }
4343 bool setATReg(unsigned Reg);
4444
45 bool isReorder() { return reorder; }
46 void setReorder() { reorder = true; }
47 void setNoreorder() { reorder = false; }
48
49 bool isMacro() { return macro; }
50 void setMacro() { macro = true; }
51 void setNomacro() { macro = false; }
45 bool isReorder() { return Reorder; }
46 void setReorder() { Reorder = true; }
47 void setNoReorder() { Reorder = false; }
48
49 bool isMacro() { return Macro; }
50 void setMacro() { Macro = true; }
51 void setNoMacro() { Macro = false; }
5252
5353 private:
54 unsigned aTReg;
55 bool reorder;
56 bool macro;
54 unsigned ATReg;
55 bool Reorder;
56 bool Macro;
5757 };
5858 }
5959
15671567 if (Reg > 31)
15681568 return false;
15691569
1570 aTReg = Reg;
1570 ATReg = Reg;
15711571 return true;
15721572 }
15731573
24082408 reportParseError("unexpected token in statement");
24092409 return false;
24102410 }
2411 Options.setNoreorder();
2411 Options.setNoReorder();
24122412 getTargetStreamer().emitDirectiveSetNoReorder();
24132413 Parser.Lex(); // Consume the EndOfStatement.
24142414 return false;
24372437 reportParseError("`noreorder' must be set before `nomacro'");
24382438 return false;
24392439 }
2440 Options.setNomacro();
2440 Options.setNoMacro();
24412441 Parser.Lex(); // Consume the EndOfStatement.
24422442 return false;
24432443 }