[PATCH] D158275: [AVR][BPF][Lanai][Xtensa] Replace OperandMatchResultTy with ParseStatus (NFC)
Sergei Barannikov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 18 06:18:32 PDT 2023
barannikov88 created this revision.
Herald added subscribers: sstefan1, Jim, hiraditya, dylanmckay.
Herald added a project: All.
barannikov88 requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
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.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D158275
Files:
llvm/lib/Target/AVR/AsmParser/AVRAsmParser.cpp
llvm/lib/Target/BPF/AsmParser/BPFAsmParser.cpp
llvm/lib/Target/Lanai/AsmParser/LanaiAsmParser.cpp
llvm/lib/Target/Xtensa/AsmParser/XtensaAsmParser.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D158275.551486.patch
Type: text/x-patch
Size: 20300 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230818/4815eb9e/attachment.bin>
More information about the llvm-commits
mailing list