diff options
author | Arthur Cohen <arthur.cohen@embecosm.com> | 2025-01-22 16:52:26 +0000 |
---|---|---|
committer | CohenArthur <arthur.cohen@embecosm.com> | 2025-01-28 17:35:37 +0000 |
commit | 9f2c6de83509ae6ca1679a66b0b1be158386fc4e (patch) | |
tree | 2235dc1ccd8d8aee980458ce829aee90fec165b8 /gcc | |
parent | df15601da56accee5d77ecc0dc60cde4fcd9c8a7 (diff) | |
download | gcc-9f2c6de83509ae6ca1679a66b0b1be158386fc4e.zip gcc-9f2c6de83509ae6ca1679a66b0b1be158386fc4e.tar.gz gcc-9f2c6de83509ae6ca1679a66b0b1be158386fc4e.tar.bz2 |
ast: Add Path::is_lang_item()
gcc/rust/ChangeLog:
* ast/rust-path.h: New function.
Diffstat (limited to 'gcc')
-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 c5afc8f..0ecd822 100644 --- a/gcc/rust/ast/rust-path.h +++ b/gcc/rust/ast/rust-path.h @@ -622,6 +622,8 @@ public: std::string as_string () const override; + bool is_lang_item () const { return kind == Kind::LangItem; } + // TODO: this seems kinda dodgy std::vector<PathExprSegment> &get_segments () { |