aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorArthur Cohen <arthur.cohen@embecosm.com>2025-01-22 16:52:26 +0000
committerArthur Cohen <arthur.cohen@embecosm.com>2025-03-24 13:06:55 +0100
commit1b745da3ae583e853af0e453400c674a6363e72b (patch)
tree40826c5ef9866f28cbd7002c482e148ccb53b481 /gcc
parent8c8bd50a267f13bcd78969ceb09d5b533cc52ce1 (diff)
downloadgcc-1b745da3ae583e853af0e453400c674a6363e72b.zip
gcc-1b745da3ae583e853af0e453400c674a6363e72b.tar.gz
gcc-1b745da3ae583e853af0e453400c674a6363e72b.tar.bz2
gccrs: 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.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/rust/ast/rust-path.h b/gcc/rust/ast/rust-path.h
index 2a76acc..c253703 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 ()
{