diff options
author | Philip Herron <philip.herron@embecosm.com> | 2021-12-16 13:53:57 +0000 |
---|---|---|
committer | Philip Herron <philip.herron@embecosm.com> | 2021-12-16 14:33:28 +0000 |
commit | cd1814f927017dbe2618078f3574c37586831659 (patch) | |
tree | ce096e98f5deb41fc92e53c5926d723d76803311 /gcc | |
parent | de1ed2e805cc7de7ab29b5e183354bae86173669 (diff) | |
download | gcc-cd1814f927017dbe2618078f3574c37586831659.zip gcc-cd1814f927017dbe2618078f3574c37586831659.tar.gz gcc-cd1814f927017dbe2618078f3574c37586831659.tar.bz2 |
Add missing abstract method HIR::Pattern::get_locus() const
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/rust/hir/tree/rust-hir-pattern.h | 2 | ||||
-rw-r--r-- | gcc/rust/hir/tree/rust-hir.h | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/gcc/rust/hir/tree/rust-hir-pattern.h b/gcc/rust/hir/tree/rust-hir-pattern.h index fd4960f..3d0dd52 100644 --- a/gcc/rust/hir/tree/rust-hir-pattern.h +++ b/gcc/rust/hir/tree/rust-hir-pattern.h @@ -404,6 +404,8 @@ public: return mappings; } + Location get_locus () const override final { return locus; } + protected: /* Use covariance to implement clone function as returning this object rather * than base */ diff --git a/gcc/rust/hir/tree/rust-hir.h b/gcc/rust/hir/tree/rust-hir.h index 8b5f3bb..b7abe67 100644 --- a/gcc/rust/hir/tree/rust-hir.h +++ b/gcc/rust/hir/tree/rust-hir.h @@ -330,6 +330,8 @@ public: virtual Analysis::NodeMapping get_pattern_mappings () const = 0; + virtual Location get_locus () const = 0; + protected: // Clone pattern implementation as pure virtual method virtual Pattern *clone_pattern_impl () const = 0; |