public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc/devel/rust/master] hir: StructField: Add `get_visibility()` method
@ 2022-06-08 12:29 Thomas Schwinge
  0 siblings, 0 replies; only message in thread
From: Thomas Schwinge @ 2022-06-08 12:29 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:d103151143aaeba14d3fceda8806a83157559c62

commit d103151143aaeba14d3fceda8806a83157559c62
Author: Arthur Cohen <arthur.cohen@embecosm.com>
Date:   Thu Apr 7 14:04:58 2022 +0200

    hir: StructField: Add `get_visibility()` method

Diff:
---
 gcc/rust/hir/tree/rust-hir-item.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/gcc/rust/hir/tree/rust-hir-item.h b/gcc/rust/hir/tree/rust-hir-item.h
index 70d51384ded..bc26725ff0b 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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-06-08 12:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-08 12:29 [gcc/devel/rust/master] hir: StructField: Add `get_visibility()` method Thomas Schwinge

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).