summaryrefslogtreecommitdiff
path: root/lib/Target/Mips/AsmParser
diff options
context:
space:
mode:
authorAkira Hatanaka <ahatanaka@mips.com>2013-07-24 18:43:52 +0000
committerAkira Hatanaka <ahatanaka@mips.com>2013-07-24 18:43:52 +0000
commit94ce6dadd131ca80adf2ba05391f689684540601 (patch)
tree0e11494d07f4328b4bafdbd0db3b524aff59c810 /lib/Target/Mips/AsmParser
parentf32ec17b9fb5a011711d8c74efaf29f9caa46091 (diff)
downloadllvm-94ce6dadd131ca80adf2ba05391f689684540601.tar.gz
llvm-94ce6dadd131ca80adf2ba05391f689684540601.tar.bz2
llvm-94ce6dadd131ca80adf2ba05391f689684540601.tar.xz
[mips] Make MipsAsmParser::parseCCRRegs return NoMatch instead of ParseFail
when there wasn't a match. This behavior is consistent with other register parsing methods. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187063 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Mips/AsmParser')
-rw-r--r--lib/Target/Mips/AsmParser/MipsAsmParser.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/Mips/AsmParser/MipsAsmParser.cpp b/lib/Target/Mips/AsmParser/MipsAsmParser.cpp
index 12ab2cae37..33c73379a4 100644
--- a/lib/Target/Mips/AsmParser/MipsAsmParser.cpp
+++ b/lib/Target/Mips/AsmParser/MipsAsmParser.cpp
@@ -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(SmallVectorImpl<MCParsedAsmOperand*> &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);