Index: lib/Target/Mips/AsmParser/MipsAsmParser.cpp =================================================================== --- lib/Target/Mips/AsmParser/MipsAsmParser.cpp +++ lib/Target/Mips/AsmParser/MipsAsmParser.cpp @@ -47,14 +47,14 @@ ATReg(1), Reorder(true), Macro(true), Features(Features_) {} MipsAssemblerOptions(const MipsAssemblerOptions *Opts) { - ATReg = Opts->getATRegNum(); + ATReg = Opts->getATRegIndex(); Reorder = Opts->isReorder(); Macro = Opts->isMacro(); Features = Opts->getFeatures(); } - unsigned getATRegNum() const { return ATReg; } - bool setATReg(unsigned Reg) { + unsigned getATRegIndex() const { return ATReg; } + bool setATRegIndex(unsigned Reg) { if (Reg > 31) return false; @@ -2204,7 +2204,7 @@ void MipsAsmParser::warnIfAssemblerTemporary(int RegIndex, SMLoc Loc) { if ((RegIndex != 0) && - ((int)AssemblerOptions.back()->getATRegNum() == RegIndex)) { + ((int)AssemblerOptions.back()->getATRegIndex() == RegIndex)) { if (RegIndex == 1) Warning(Loc, "used $at without \".set noat\""); else @@ -2385,7 +2385,7 @@ } unsigned MipsAsmParser::getATReg(SMLoc Loc) { - unsigned ATIndex = AssemblerOptions.back()->getATRegNum(); + unsigned ATIndex = AssemblerOptions.back()->getATRegIndex(); if (ATIndex == 0) { reportParseError(Loc, "pseudo-instruction requires $at, which is not available"); @@ -3299,7 +3299,7 @@ // Line should look like: ".set noat". // Set the $at register to $0. - AssemblerOptions.back()->setATReg(0); + AssemblerOptions.back()->setATRegIndex(0); Parser.Lex(); // Eat "noat". @@ -3322,7 +3322,7 @@ if (getLexer().is(AsmToken::EndOfStatement)) { // No register was specified, so we set $at to $1. - AssemblerOptions.back()->setATReg(1); + AssemblerOptions.back()->setATRegIndex(1); getTargetStreamer().emitDirectiveSetAt(); Parser.Lex(); // Consume the EndOfStatement. @@ -3359,7 +3359,7 @@ } // Check if $reg is a valid register. If it is, set $at to $reg. - if (!AssemblerOptions.back()->setATReg(AtRegNo)) { + if (!AssemblerOptions.back()->setATRegIndex(AtRegNo)) { reportParseError("invalid register"); return false; }