diff options
author | Arthur Cohen <arthur.cohen@embecosm.com> | 2022-04-07 14:04:58 +0200 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2022-04-12 15:26:11 +0200 |
commit | d103151143aaeba14d3fceda8806a83157559c62 (patch) | |
tree | 51b72cad62a8dc97369adf19029daa5d970b2e85 | |
parent | 6db5c9fb19f0ee0223ee7cea75e91f923f0104a9 (diff) | |
download | gcc-d103151143aaeba14d3fceda8806a83157559c62.zip gcc-d103151143aaeba14d3fceda8806a83157559c62.tar.gz gcc-d103151143aaeba14d3fceda8806a83157559c62.tar.bz2 |
hir: StructField: Add `get_visibility()` method
-rw-r--r-- | gcc/rust/hir/tree/rust-hir-item.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/rust/hir/tree/rust-hir-item.h b/gcc/rust/hir/tree/rust-hir-item.h index 70d5138..bc26725 100644 --- a/gcc/rust/hir/tree/rust-hir-item.h +++ b/gcc/rust/hir/tree/rust-hir-item.h @@ -1463,6 +1463,8 @@ public: Analysis::NodeMapping get_mappings () const { return mappings; } Location get_locus () { return locus; } + + Visibility &get_visibility () { return visibility; } }; // Rust struct declaration with true struct type HIR node |