mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-19 04:32:19 +00:00
[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/trunk@217254 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
286f644bce
commit
f47b55160c
@ -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).
|
||||
@ -66,9 +66,9 @@ public:
|
||||
Mips::FeatureGP64Bit | Mips::FeatureNaN2008;
|
||||
|
||||
private:
|
||||
unsigned aTReg;
|
||||
bool reorder;
|
||||
bool macro;
|
||||
unsigned ATReg;
|
||||
bool Reorder;
|
||||
bool Macro;
|
||||
};
|
||||
}
|
||||
|
||||
@ -1706,7 +1706,7 @@ bool MipsAssemblerOptions::setATReg(unsigned Reg) {
|
||||
if (Reg > 31)
|
||||
return false;
|
||||
|
||||
aTReg = Reg;
|
||||
ATReg = Reg;
|
||||
return true;
|
||||
}
|
||||
|
||||
@ -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;
|
||||
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user