[llvm] r217254 - [mips] Rename data members and member functions in MipsAssemblerOptions.

Toma Tabacu toma.tabacu at imgtec.com
Fri Sep 5 08:43:22 PDT 2014


Author: tomatabacu
Date: Fri Sep  5 10:43:21 2014
New Revision: 217254

URL: http://llvm.org/viewvc/llvm-project?rev=217254&view=rev
Log:
[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

Modified:
    llvm/trunk/lib/Target/Mips/AsmParser/MipsAsmParser.cpp

Modified: llvm/trunk/lib/Target/Mips/AsmParser/MipsAsmParser.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Mips/AsmParser/MipsAsmParser.cpp?rev=217254&r1=217253&r2=217254&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Mips/AsmParser/MipsAsmParser.cpp (original)
+++ llvm/trunk/lib/Target/Mips/AsmParser/MipsAsmParser.cpp Fri Sep  5 10:43:21 2014
@@ -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 isMacro() { return macro; }
-  void setMacro() { macro = true; }
-  void setNomacro() { macro = 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; }
 
   // 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(unsi
   if (Reg > 31)
     return false;
 
-  aTReg = Reg;
+  ATReg = Reg;
   return true;
 }
 
@@ -2548,7 +2548,7 @@ bool MipsAsmParser::parseSetNoReorderDir
     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::parseSetNoMacroDirec
     reportParseError("`noreorder' must be set before `nomacro'");
     return false;
   }
-  Options.setNomacro();
+  Options.setNoMacro();
   Parser.Lex(); // Consume the EndOfStatement.
   return false;
 }





More information about the llvm-commits mailing list