diff options
author | jjasmine <tanghocle456@gmail.com> | 2024-06-10 16:54:34 -0700 |
---|---|---|
committer | CohenArthur <arthur.cohen@embecosm.com> | 2024-06-13 15:31:07 +0000 |
commit | 9d812b8af76d7517f21060708deb060ccf8c7a8c (patch) | |
tree | a652ef2355f8c1f70754487b3d415a1765bbe846 /gcc/rust/expand/rust-macro-builtins-asm.h | |
parent | 57c1f3a0f0d974662ded3a48200318dde763e4c6 (diff) | |
download | gcc-9d812b8af76d7517f21060708deb060ccf8c7a8c.zip gcc-9d812b8af76d7517f21060708deb060ccf8c7a8c.tar.gz gcc-9d812b8af76d7517f21060708deb060ccf8c7a8c.tar.bz2 |
Partial support for operand
gcc/rust/ChangeLog:
* ast/rust-expr.h (struct InlineAsmOperand):
Partial support for operand
* expand/rust-macro-builtins-asm.cc (parse_reg_operand): Likewise.
(parse_label): Likewise.
* expand/rust-macro-builtins-asm.h (parse_label): Likewise.
Diffstat (limited to 'gcc/rust/expand/rust-macro-builtins-asm.h')
-rw-r--r-- | gcc/rust/expand/rust-macro-builtins-asm.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/rust/expand/rust-macro-builtins-asm.h b/gcc/rust/expand/rust-macro-builtins-asm.h index 1ed3148..267c1b6 100644 --- a/gcc/rust/expand/rust-macro-builtins-asm.h +++ b/gcc/rust/expand/rust-macro-builtins-asm.h @@ -72,6 +72,10 @@ tl::optional<std::string> parse_format_string (Parser<MacroInvocLexer> &parser, TokenId last_token_id, InlineAsmContext &inline_asm_ctx); +tl::optional<std::string> +parse_label (Parser<MacroInvocLexer> &parser, TokenId last_token_id, + InlineAsmContext &inline_asm_ctx); + std::set<std::string> potentially_nonpromoted_keywords = {"in", "out", "lateout", "inout", "inlateout", "const", "sym", "label"}; |