[llvm] r187063 - [mips] Make MipsAsmParser::parseCCRRegs return NoMatch instead of ParseFail

Akira Hatanaka ahatanaka at mips.com
Wed Jul 24 11:43:52 PDT 2013


Author: ahatanak
Date: Wed Jul 24 13:43:52 2013
New Revision: 187063

URL: http://llvm.org/viewvc/llvm-project?rev=187063&view=rev
Log:
[mips] Make MipsAsmParser::parseCCRRegs return NoMatch instead of ParseFail
when there wasn't a match. This behavior is consistent with other register
parsing methods.


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=187063&r1=187062&r2=187063&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Mips/AsmParser/MipsAsmParser.cpp (original)
+++ llvm/trunk/lib/Target/Mips/AsmParser/MipsAsmParser.cpp Wed Jul 24 13:43:52 2013
@@ -1451,7 +1451,7 @@ MipsAsmParser::OperandMatchResultTy
 MipsAsmParser::parseCCRRegs(SmallVectorImpl<MCParsedAsmOperand*> &Operands) {
   // If the first token is not '$' we have an error.
   if (Parser.getTok().isNot(AsmToken::Dollar))
-    return MatchOperand_ParseFail;
+    return MatchOperand_NoMatch;
 
   SMLoc S = Parser.getTok().getLoc();
   Parser.Lex(); // Eat the '$'
@@ -1459,7 +1459,7 @@ MipsAsmParser::parseCCRRegs(SmallVectorI
   const AsmToken &Tok = Parser.getTok(); // Get next token.
 
   if (Tok.isNot(AsmToken::Integer))
-    return MatchOperand_ParseFail;
+    return MatchOperand_NoMatch;
 
   unsigned Reg = matchRegisterByNumber(Tok.getIntVal(), Mips::CCRRegClassID);
 





More information about the llvm-commits mailing list