diff options
author | Arthur Cohen <arthur.cohen@embecosm.com> | 2022-06-20 16:50:46 +0200 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2022-06-20 16:50:46 +0200 |
commit | 6e5468e256dd06eb6988a0eca37c86bc52722457 (patch) | |
tree | 76ad85909cc24b3fab44967026e65b812e868bbb /gcc/rust/ast | |
parent | 8f996567e84015714bcf322d11a46580611e3377 (diff) | |
download | gcc-6e5468e256dd06eb6988a0eca37c86bc52722457.zip gcc-6e5468e256dd06eb6988a0eca37c86bc52722457.tar.gz gcc-6e5468e256dd06eb6988a0eca37c86bc52722457.tar.bz2 |
hir: Add ConstGenericArg and lower them properly
Diffstat (limited to 'gcc/rust/ast')
-rw-r--r-- | gcc/rust/ast/rust-path.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/rust/ast/rust-path.h b/gcc/rust/ast/rust-path.h index 5642226..03758d0 100644 --- a/gcc/rust/ast/rust-path.h +++ b/gcc/rust/ast/rust-path.h @@ -189,6 +189,8 @@ public: Kind get_kind () const { return kind; } + std::unique_ptr<AST::Expr> &get_expression () { return expression; } + std::string as_string () const { switch (get_kind ()) |