diff options
author | badumbatish <tanghocle456@gmail.com> | 2024-06-29 17:12:33 -0700 |
---|---|---|
committer | CohenArthur <arthur.cohen@embecosm.com> | 2024-07-01 13:30:38 +0000 |
commit | b657fa0c78b422ab020693b3f0eca5cb98fb1492 (patch) | |
tree | b0a0da164839dd0e297cd9faf10731635fcfaf29 /gcc/rust/ast/rust-expr.h | |
parent | 7fd14aafa34796068ebdd7ff35284f3b7a8e9c4c (diff) | |
download | gcc-b657fa0c78b422ab020693b3f0eca5cb98fb1492.zip gcc-b657fa0c78b422ab020693b3f0eca5cb98fb1492.tar.gz gcc-b657fa0c78b422ab020693b3f0eca5cb98fb1492.tar.bz2 |
Store parse result of parse_format_string(s)
gcc/rust/ChangeLog:
* ast/rust-expr.h (struct TupleTemplateStr):
Store parse result of parse_format_string(s)
* expand/rust-macro-builtins-asm.cc (parse_format_strings):
Likewise
Signed-off-by: badumbatish <tanghocle456@gmail.com>
Diffstat (limited to 'gcc/rust/ast/rust-expr.h')
-rw-r--r-- | gcc/rust/ast/rust-expr.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gcc/rust/ast/rust-expr.h b/gcc/rust/ast/rust-expr.h index 9787e9a..f3ebf0b 100644 --- a/gcc/rust/ast/rust-expr.h +++ b/gcc/rust/ast/rust-expr.h @@ -5057,9 +5057,12 @@ struct TupleClobber struct TupleTemplateStr { // as gccrs still doesn't contain a symbol class I have put them as strings - std::string symbol; - std::string optional_symbol; location_t loc; + std::string symbol; + + TupleTemplateStr (location_t loc, const std::string &symbol) + : loc (loc), symbol (symbol) + {} }; // Inline Assembly Node |