[all-commits] [llvm/llvm-project] 5141a5: [ARM] Replace OperandMatchResultTy with ParseStatu...
Sergei Barannikov via All-commits
all-commits at lists.llvm.org
Thu Jul 13 16:31:32 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 5141a520b04fc3f0efa741df9253db7d78bb3271
https://github.com/llvm/llvm-project/commit/5141a520b04fc3f0efa741df9253db7d78bb3271
Author: Sergei Barannikov <barannikov88 at gmail.com>
Date: 2023-07-14 (Fri, 14 Jul 2023)
Changed paths:
M llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
Log Message:
-----------
[ARM] 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: olista01
Differential Revision: https://reviews.llvm.org/D154304
More information about the All-commits
mailing list