[M68k] Replace OperandMatchResultTy with ParseStatus (NFC)
authorSergei Barannikov <barannikov88@gmail.com>
Mon, 3 Jul 2023 04:21:53 +0000 (07:21 +0300)
committerSergei Barannikov <barannikov88@gmail.com>
Tue, 4 Jul 2023 19:19:59 +0000 (22:19 +0300)
commit4c691aedd37fb065c411dd246527dde61a56321b
treeff00481e4f902a43c50c06bf88eb987d6218463b
parentd22918484e7769fd8667a64a7df662b6de6bde6c
[M68k] Replace OperandMatchResultTy with ParseStatus (NFC)

ParseStatus is slightly more convenient to use due to implicit
conversion from bool, which allows to do something like:
```
  return Error(L, "msg");
```
when with MatchOperandResultTy it had to be:
```
  Error(L, "msg");
  return MatchOperand_ParseFail;
```
It also has more appropriate name since parse* methods are not only for
parsing operands.

Reviewed By: myhsu

Differential Revision: https://reviews.llvm.org/D154320
llvm/lib/Target/M68k/AsmParser/M68kAsmParser.cpp