public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc/devel/rust/master] Add missing abstract method HIR::Pattern::get_locus() const
@ 2022-06-08 11:57 Thomas Schwinge
0 siblings, 0 replies; only message in thread
From: Thomas Schwinge @ 2022-06-08 11:57 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:cd1814f927017dbe2618078f3574c37586831659
commit cd1814f927017dbe2618078f3574c37586831659
Author: Philip Herron <philip.herron@embecosm.com>
Date: Thu Dec 16 13:53:57 2021 +0000
Add missing abstract method HIR::Pattern::get_locus() const
Diff:
---
gcc/rust/hir/tree/rust-hir-pattern.h | 2 ++
gcc/rust/hir/tree/rust-hir.h | 2 ++
2 files changed, 4 insertions(+)
diff --git a/gcc/rust/hir/tree/rust-hir-pattern.h b/gcc/rust/hir/tree/rust-hir-pattern.h
index fd4960fd233..3d0dd52edab 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 8b5f3bb2dea..b7abe67facf 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;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-06-08 11:57 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-08 11:57 [gcc/devel/rust/master] Add missing abstract method HIR::Pattern::get_locus() const 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).