From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2209) id 8B4CF3858C51; Mon, 23 May 2022 19:09:52 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8B4CF3858C51 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: David Malcolm To: gcc-cvs@gcc.gnu.org Subject: [gcc r13-715] jit: use 'final' and 'override' where appropriate X-Act-Checkin: gcc X-Git-Author: David Malcolm X-Git-Refname: refs/heads/master X-Git-Oldrev: 2ac1459f044ee5a6ec5aee53a87fd3b8974a77f5 X-Git-Newrev: 58c9c7407a1a992ac253826790cd2b8920e3fe8f Message-Id: <20220523190952.8B4CF3858C51@sourceware.org> Date: Mon, 23 May 2022 19:09:52 +0000 (GMT) X-BeenThere: gcc-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 May 2022 19:09:52 -0000 https://gcc.gnu.org/g:58c9c7407a1a992ac253826790cd2b8920e3fe8f commit r13-715-g58c9c7407a1a992ac253826790cd2b8920e3fe8f Author: David Malcolm Date: Mon May 23 15:09:30 2022 -0400 jit: use 'final' and 'override' where appropriate gcc/jit/ChangeLog: * jit-recording.h: Add "final" and "override" to all vfunc implementations that were missing them, as appropriate. Signed-off-by: David Malcolm Diff: --- gcc/jit/jit-recording.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/gcc/jit/jit-recording.h b/gcc/jit/jit-recording.h index 2dd8a957ca7..0dfb42f2676 100644 --- a/gcc/jit/jit-recording.h +++ b/gcc/jit/jit-recording.h @@ -721,14 +721,14 @@ public: /* Strip off the "const", giving the underlying type. */ type *unqualified () final override { return m_other_type; } - virtual bool is_same_type_as (type *other) + bool is_same_type_as (type *other) final override { if (!other->is_const ()) return false; return m_other_type->is_same_type_as (other->is_const ()); } - virtual type *is_const () { return m_other_type; } + type *is_const () final override { return m_other_type; } void replay_into (replayer *) final override; @@ -744,7 +744,7 @@ public: memento_of_get_volatile (type *other_type) : decorated_type (other_type) {} - virtual bool is_same_type_as (type *other) + bool is_same_type_as (type *other) final override { if (!other->is_volatile ()) return false; @@ -754,7 +754,7 @@ public: /* Strip off the "volatile", giving the underlying type. */ type *unqualified () final override { return m_other_type; } - virtual type *is_volatile () { return m_other_type; } + type *is_volatile () final override { return m_other_type; } void replay_into (replayer *) final override; @@ -1051,7 +1051,7 @@ public: void replay_into (replayer *r) final override; - virtual bool is_union () const final override { return true; } + bool is_union () const final override { return true; } private: string * make_debug_string () final override;