diff options
author | Arthur Cohen <arthur.cohen@embecosm.com> | 2022-06-20 14:57:21 +0200 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2022-06-20 16:11:36 +0200 |
commit | 8f996567e84015714bcf322d11a46580611e3377 (patch) | |
tree | 75d3cf6b9c387a2a9aab9ee40895fb95b4570258 /gcc/rust/ast | |
parent | c0f11672d760513256997f325da678016d13f677 (diff) | |
download | gcc-8f996567e84015714bcf322d11a46580611e3377.zip gcc-8f996567e84015714bcf322d11a46580611e3377.tar.gz gcc-8f996567e84015714bcf322d11a46580611e3377.tar.bz2 |
hir: Add ConstGenericParam and lower to them properly
Diffstat (limited to 'gcc/rust/ast')
-rw-r--r-- | gcc/rust/ast/rust-ast.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/rust/ast/rust-ast.h b/gcc/rust/ast/rust-ast.h index b4d401c..76324dc 100644 --- a/gcc/rust/ast/rust-ast.h +++ b/gcc/rust/ast/rust-ast.h @@ -1381,6 +1381,9 @@ public: } bool has_type () { return type != nullptr; } + bool has_default_value () { return default_value != nullptr; } + + const Identifier &get_name () const { return name; } std::unique_ptr<AST::Type> &get_type () { |