Skip to content

Commit

Permalink
[CSKY] Replace OperandMatchResultTy with ParseStatus (NFC)
Browse files Browse the repository at this point in the history
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: zixuan-wu

Differential Revision: https://reviews.llvm.org/D154315
  • Loading branch information
s-barannikov committed Jul 4, 2023
1 parent 4c691ae commit 23691bb
Showing 1 changed file with 104 additions and 148 deletions.

0 comments on commit 23691bb

Please sign in to comment.