[all-commits] [llvm/llvm-project] 9ddcac: [Sparc] Replace OperandMatchResultTy with ParseSta...
Sergei Barannikov via All-commits
all-commits at lists.llvm.org
Tue Sep 5 23:22:59 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 9ddcacce085a025898ece127d4f8aea5a600fba0
https://github.com/llvm/llvm-project/commit/9ddcacce085a025898ece127d4f8aea5a600fba0
Author: Sergei Barannikov <barannikov88 at gmail.com>
Date: 2023-09-06 (Wed, 06 Sep 2023)
Changed paths:
M llvm/lib/Target/Sparc/AsmParser/SparcAsmParser.cpp
Log Message:
-----------
[Sparc] 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: brad
Differential Revision: https://reviews.llvm.org/D154321
More information about the All-commits
mailing list