diff options
author | Mark Wielaard <mark@klomp.org> | 2021-08-28 23:45:31 +0200 |
---|---|---|
committer | Mark Wielaard <mark@klomp.org> | 2021-08-29 02:01:59 +0200 |
commit | f16e3af9ad774cbdbb534fd68066582aefc6bf80 (patch) | |
tree | 614efccc80c6c5c144b1624fa394c03b73ce3fc6 | |
parent | d12be0a643edcd3a21162f62a75a1aac55fda48d (diff) | |
download | gcc-f16e3af9ad774cbdbb534fd68066582aefc6bf80.zip gcc-f16e3af9ad774cbdbb534fd68066582aefc6bf80.tar.gz gcc-f16e3af9ad774cbdbb534fd68066582aefc6bf80.tar.bz2 |
Replace HIRItem::get_impl_locus with HirItem::get_locus
HIRItem::get_impl_locus wasn't used and all subclasses already
implement get_locus.
-rw-r--r-- | gcc/rust/hir/tree/rust-hir-item.h | 6 | ||||
-rw-r--r-- | gcc/rust/hir/tree/rust-hir.h | 2 |
2 files changed, 1 insertions, 7 deletions
diff --git a/gcc/rust/hir/tree/rust-hir-item.h b/gcc/rust/hir/tree/rust-hir-item.h index 99fc91d..7a2c267 100644 --- a/gcc/rust/hir/tree/rust-hir-item.h +++ b/gcc/rust/hir/tree/rust-hir-item.h @@ -1126,8 +1126,6 @@ public: Location get_locus () const override final { return locus; } - Location get_impl_locus () const final { return get_locus (); } - void accept_vis (HIRVisitor &vis) override; Analysis::NodeMapping get_impl_mappings () const override @@ -1268,8 +1266,6 @@ public: Location get_locus () const override final { return locus; } - Location get_impl_locus () const final { return get_locus (); } - void accept_vis (HIRVisitor &vis) override; std::vector<std::unique_ptr<GenericParam> > &get_generic_params () @@ -2017,8 +2013,6 @@ public: Location get_locus () const override final { return locus; } - Location get_impl_locus () const final { return get_locus (); } - void accept_vis (HIRVisitor &vis) override; Type *get_type () { return type.get (); } diff --git a/gcc/rust/hir/tree/rust-hir.h b/gcc/rust/hir/tree/rust-hir.h index b994d06..8ba6308 100644 --- a/gcc/rust/hir/tree/rust-hir.h +++ b/gcc/rust/hir/tree/rust-hir.h @@ -663,7 +663,7 @@ public: virtual Analysis::NodeMapping get_impl_mappings () const = 0; - virtual Location get_impl_locus () const = 0; + virtual Location get_locus () const = 0; }; // A crate HIR object - holds all the data for a single compilation unit |