[all-commits] [llvm/llvm-project] aeeaad: [SystemZ] Replace OperandMatchResultTy with ParseS...
Sergei Barannikov via All-commits
all-commits at lists.llvm.org
Mon Jul 31 06:44:19 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: aeeaadd6ee46ba61a9d83e1ccf56c2e231f822ee
https://github.com/llvm/llvm-project/commit/aeeaadd6ee46ba61a9d83e1ccf56c2e231f822ee
Author: Sergei Barannikov <barannikov88 at gmail.com>
Date: 2023-07-31 (Mon, 31 Jul 2023)
Changed paths:
M llvm/lib/Target/SystemZ/AsmParser/SystemZAsmParser.cpp
Log Message:
-----------
[SystemZ] 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: uweigand
Differential Revision: https://reviews.llvm.org/D154316
More information about the All-commits
mailing list