aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/backend
diff options
context:
space:
mode:
authorOwen Avery <powerboat9.gamer@gmail.com>2024-10-10 21:24:50 -0400
committerArthur Cohen <arthur.cohen@embecosm.com>2025-03-19 15:32:16 +0100
commitb7f03bbd20d6aab28b85b8edb645ff20badd6d10 (patch)
treeaa05eda632998791bddc4794b22766b39702ea12 /gcc/rust/backend
parentb05e174a34799f5a24235ff5d553387963c41da4 (diff)
downloadgcc-b7f03bbd20d6aab28b85b8edb645ff20badd6d10.zip
gcc-b7f03bbd20d6aab28b85b8edb645ff20badd6d10.tar.gz
gcc-b7f03bbd20d6aab28b85b8edb645ff20badd6d10.tar.bz2
gccrs: Rework InlineAsmOperand
Not thrilled with some of this boilerplate, but it does seem like an improvement. gcc/rust/ChangeLog: * ast/rust-expr.h (InlineAsmOperand): Replace multiple mutually-exclusive tl::optional fields with a std::unique_ptr and modify nested classes to allow this. Also, make getters return references where possible. * expand/rust-macro-builtins-asm.cc (parse_reg_operand_out): Pass location when constructing InlineAsmOperand. Signed-off-by: Owen Avery <powerboat9.gamer@gmail.com>
Diffstat (limited to 'gcc/rust/backend')
0 files changed, 0 insertions, 0 deletions