[all-commits] [llvm/llvm-project] 0e7911: [AVR][BPF][Lanai][Xtensa] Replace OperandMatchResu...
Sergei Barannikov via All-commits
all-commits at lists.llvm.org
Sun Aug 20 04:20:54 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 0e79111e4d633f523fdc8b5ea91ea416320b37a5
https://github.com/llvm/llvm-project/commit/0e79111e4d633f523fdc8b5ea91ea416320b37a5
Author: Sergei Barannikov <barannikov88 at gmail.com>
Date: 2023-08-20 (Sun, 20 Aug 2023)
Changed paths:
M llvm/lib/Target/AVR/AsmParser/AVRAsmParser.cpp
M llvm/lib/Target/BPF/AsmParser/BPFAsmParser.cpp
M llvm/lib/Target/Lanai/AsmParser/LanaiAsmParser.cpp
M llvm/lib/Target/Xtensa/AsmParser/XtensaAsmParser.cpp
Log Message:
-----------
[AVR][BPF][Lanai][Xtensa] 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: MaskRay
Differential Revision: https://reviews.llvm.org/D158275
More information about the All-commits
mailing list