Skip to content

Commit

Permalink
[mips] Rename data members and member functions in MipsAssemblerOptions.
Browse files Browse the repository at this point in the history
Summary: Use the naming convention from the LLVM Coding Standards.

Reviewers: dsanders

Reviewed By: dsanders

Differential Revision: http://reviews.llvm.org/D4972

llvm-svn: 217254
  • Loading branch information
Toma Tabacu committed Sep 5, 2014
1 parent bc5353a commit 3c24b04
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions llvm/lib/Target/Mips/AsmParser/MipsAsmParser.cpp
Expand Up @@ -38,18 +38,18 @@ class MCInstrInfo;
namespace {
class MipsAssemblerOptions {
public:
MipsAssemblerOptions() : aTReg(1), reorder(true), macro(true) {}
MipsAssemblerOptions() : ATReg(1), Reorder(true), Macro(true) {}

unsigned getATRegNum() { return aTReg; }
unsigned getATRegNum() { return ATReg; }
bool setATReg(unsigned Reg);

bool isReorder() { return reorder; }
void setReorder() { reorder = true; }
void setNoreorder() { reorder = false; }
bool isReorder() { return Reorder; }
void setReorder() { Reorder = true; }
void setNoReorder() { Reorder = false; }

bool isMacro() { return macro; }
void setMacro() { macro = true; }
void setNomacro() { macro = false; }
bool isMacro() { return Macro; }
void setMacro() { Macro = true; }
void setNoMacro() { Macro = false; }

// Set of features that are either architecture features or referenced
// by them (e.g.: FeatureNaN2008 implied by FeatureMips32r6).
Expand All @@ -66,9 +66,9 @@ class MipsAssemblerOptions {
Mips::FeatureGP64Bit | Mips::FeatureNaN2008;

private:
unsigned aTReg;
bool reorder;
bool macro;
unsigned ATReg;
bool Reorder;
bool Macro;
};
}

Expand Down Expand Up @@ -1706,7 +1706,7 @@ bool MipsAssemblerOptions::setATReg(unsigned Reg) {
if (Reg > 31)
return false;

aTReg = Reg;
ATReg = Reg;
return true;
}

Expand Down Expand Up @@ -2548,7 +2548,7 @@ bool MipsAsmParser::parseSetNoReorderDirective() {
reportParseError("unexpected token in statement");
return false;
}
Options.setNoreorder();
Options.setNoReorder();
getTargetStreamer().emitDirectiveSetNoReorder();
Parser.Lex(); // Consume the EndOfStatement.
return false;
Expand Down Expand Up @@ -2577,7 +2577,7 @@ bool MipsAsmParser::parseSetNoMacroDirective() {
reportParseError("`noreorder' must be set before `nomacro'");
return false;
}
Options.setNomacro();
Options.setNoMacro();
Parser.Lex(); // Consume the EndOfStatement.
return false;
}
Expand Down

0 comments on commit 3c24b04

Please sign in to comment.