]> git.ipfire.org Git - thirdparty/gcc.git/commit
gccrs: Added tl::expected to parse_operand
authorjjasmine <tanghocle456@gmail.com>
Mon, 17 Jun 2024 03:40:06 +0000 (20:40 -0700)
committerArthur Cohen <arthur.cohen@embecosm.com>
Mon, 17 Mar 2025 15:35:51 +0000 (16:35 +0100)
commit95c31e91eab710135b684344ff088d6ba52abf41
tree6b42a22306b9971613b3c7c4b8238616d85fd0a7
parente780a09bd810c85936d52799d1af4f0cc0070dce
gccrs: Added tl::expected to parse_operand

Added tl::expected to parse_operand by implementing the validation
inside the parse_reg_operand function.

gcc/rust/ChangeLog:

* ast/rust-expr.h:
Added tl::expected to parse_operand
* expand/rust-macro-builtins-asm.cc (parse_reg): Likewise.
(parse_reg_operand): Likewise.
(parse_reg_operand_const): Likewise.
(parse_reg_operand_inout): Likewise.
(parse_asm_arg): Likewise.
* expand/rust-macro-builtins-asm.h: Likewise.

Signed-off-by: badumbatish <tanghocle456@gmail.com>
gcc/rust/ast/rust-expr.h
gcc/rust/expand/rust-macro-builtins-asm.cc
gcc/rust/expand/rust-macro-builtins-asm.h