diff options
author | Marc Poulhiès <dkm@kataplop.net> | 2021-08-12 13:44:34 +0200 |
---|---|---|
committer | Marc <dkm@kataplop.net> | 2021-08-18 22:59:36 +0200 |
commit | 76ed248287c256e306f561a2de166114666743e8 (patch) | |
tree | 02c0abc277e39a3052895cfc2d4c8973551ee2e1 | |
parent | fc0c2dcf34b46affddc871962525c0b062571490 (diff) | |
download | gcc-76ed248287c256e306f561a2de166114666743e8.zip gcc-76ed248287c256e306f561a2de166114666743e8.tar.gz gcc-76ed248287c256e306f561a2de166114666743e8.tar.bz2 |
ast: add AST::Module::get_name method
Allow for getting a module's name.
ref #432
-rw-r--r-- | gcc/rust/ast/rust-item.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/rust/ast/rust-item.h b/gcc/rust/ast/rust-item.h index dac76f5..b996e17 100644 --- a/gcc/rust/ast/rust-item.h +++ b/gcc/rust/ast/rust-item.h @@ -972,6 +972,8 @@ public: UNLOADED, }; + Identifier get_name () const { return module_name; } + private: Identifier module_name; Location locus; |