From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gnu.wildebeest.org (wildebeest.demon.nl [212.238.236.112]) by sourceware.org (Postfix) with ESMTPS id 01B9F3858D34 for ; Sun, 29 Aug 2021 01:03:53 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 01B9F3858D34 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=klomp.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=klomp.org Received: from reform (deer0x0b.wildebeest.org [172.31.17.141]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by gnu.wildebeest.org (Postfix) with ESMTPSA id 9AEF03000B17; Sun, 29 Aug 2021 03:03:51 +0200 (CEST) Received: by reform (Postfix, from userid 1000) id 5B8F32E80FE3; Sun, 29 Aug 2021 03:03:51 +0200 (CEST) From: Mark Wielaard To: gcc-rust@gcc.gnu.org Cc: Mark Wielaard Subject: [PATCH 2/3] Replace HIRItem::get_impl_locus with HirItem::get_locus Date: Sun, 29 Aug 2021 03:02:06 +0200 Message-Id: <20210829010206.409300-3-mark@klomp.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210829010206.409300-1-mark@klomp.org> References: <20210829010206.409300-1-mark@klomp.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-11.1 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: gcc-rust@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: gcc-rust mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 Aug 2021 01:03:54 -0000 HIRItem::get_impl_locus wasn't used and all subclasses already implement get_locus. --- gcc/rust/hir/tree/rust-hir-item.h | 6 ------ gcc/rust/hir/tree/rust-hir.h | 2 +- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/gcc/rust/hir/tree/rust-hir-item.h b/gcc/rust/hir/tree/rust-hir-item.h index 99fc91de117..7a2c2676825 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 > &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 b994d063452..8ba6308fdea 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 -- 2.32.0