diff options
author | jjasmine <tanghocle456@gmail.com> | 2024-06-16 20:40:06 -0700 |
---|---|---|
committer | CohenArthur <arthur.cohen@embecosm.com> | 2024-06-28 09:59:34 +0000 |
commit | 76ba4a65809d2c8d1b8dac97585676c5ce22f447 (patch) | |
tree | 3026dc801cfbadd54b4394f417717695c7d5664d /gcc/rust/expand/rust-macro-builtins-asm.h | |
parent | 74b6c7e4f95592423871b15a1457c816fb25e327 (diff) | |
download | gcc-76ba4a65809d2c8d1b8dac97585676c5ce22f447.zip gcc-76ba4a65809d2c8d1b8dac97585676c5ce22f447.tar.gz gcc-76ba4a65809d2c8d1b8dac97585676c5ce22f447.tar.bz2 |
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>
Diffstat (limited to 'gcc/rust/expand/rust-macro-builtins-asm.h')
-rw-r--r-- | gcc/rust/expand/rust-macro-builtins-asm.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/gcc/rust/expand/rust-macro-builtins-asm.h b/gcc/rust/expand/rust-macro-builtins-asm.h index a0bfd78..201f807 100644 --- a/gcc/rust/expand/rust-macro-builtins-asm.h +++ b/gcc/rust/expand/rust-macro-builtins-asm.h @@ -31,13 +31,13 @@ public: parser (parser), last_token_id (last_token_id) {} - // InlineAsmContext (const InlineAsmContext& inline_asm_ctx) - // : allow_templates (inline_asm_ctx.allow_templates), is_explicit - // (inline_asm_ctx.is_explicit), - // consumed_comma_without_formatted_string (false), inline_asm - // (inline_asm_ctx.inline_asm), parser (inline_asm_ctx.parser), - // last_token_id (inline_asm_ctx.last_token_id) - // {} + InlineAsmContext (const InlineAsmContext &inline_asm_ctx) + : allow_templates (inline_asm_ctx.allow_templates), + is_explicit (inline_asm_ctx.is_explicit), + consumed_comma_without_formatted_string (false), + inline_asm (inline_asm_ctx.inline_asm), parser (inline_asm_ctx.parser), + last_token_id (inline_asm_ctx.last_token_id) + {} // explicit InlineAsmContext (InlineAsmContext&& inline_asm_ctx) // : allow_templates (inline_asm_ctx.allow_templates), is_explicit // (inline_asm_ctx.is_explicit), |