From dade526a4c0a17166aa07d80b9d1e16a39c0594b Mon Sep 17 00:00:00 2001 From: Akira Hatanaka Date: Wed, 24 Jul 2013 18:43:52 +0000 Subject: [PATCH] [mips] Make MipsAsmParser::parseCCRRegs return NoMatch instead of ParseFail when there wasn't a match. This behavior is consistent with other register parsing methods. llvm-svn: 187063 --- llvm/lib/Target/Mips/AsmParser/MipsAsmParser.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm/lib/Target/Mips/AsmParser/MipsAsmParser.cpp b/llvm/lib/Target/Mips/AsmParser/MipsAsmParser.cpp index 12ab2cae3734..33c73379a4f2 100644 --- a/llvm/lib/Target/Mips/AsmParser/MipsAsmParser.cpp +++ b/llvm/lib/Target/Mips/AsmParser/MipsAsmParser.cpp @@ -1451,7 +1451,7 @@ MipsAsmParser::OperandMatchResultTy MipsAsmParser::parseCCRRegs(SmallVectorImpl &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(SmallVectorImpl &Operands) { 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);