From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1879) id D8F9F3858D20; Fri, 20 Jan 2023 19:52:11 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D8F9F3858D20 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1674244331; bh=uOpckwIGPk6xxKZddC0kr+yZdt5+eaRxMYMIcdY8KyA=; h=From:To:Subject:Date:From; b=BqOYKvYMWUhLueEL+lEHprF/BYdeAbXopm84+h3BkpFNdNxjPq6eKGkH7XdSr97Ny 7oWMh1xTvlnyPkVQtQF7jE6RQvUeOb1iMsRZyrmlm23I2x8Dn7Uic05iwp5dnsw/wD 9v2aoXfbGBycfrd91K8mrLEi2tBwzgo/3MDiTMM8= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Simon Marchi To: gdb-cvs@sourceware.org Subject: [binutils-gdb] gdb: move type_map_instance to compile/compile.c X-Act-Checkin: binutils-gdb X-Git-Author: Simon Marchi X-Git-Refname: refs/heads/master X-Git-Oldrev: 57ffc61c6dceaf41d525a3cbf0cad3fdbe4448e5 X-Git-Newrev: c85555b1a8676145695cf5783df4d95c509ed82f Message-Id: <20230120195211.D8F9F3858D20@sourceware.org> Date: Fri, 20 Jan 2023 19:52:11 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3Dc85555b1a867= 6145695cf5783df4d95c509ed82f commit c85555b1a8676145695cf5783df4d95c509ed82f Author: Simon Marchi Date: Tue Dec 13 22:34:29 2022 -0500 gdb: move type_map_instance to compile/compile.c =20 It's only used in compile/compile.c, it doesn't need to be in a header. =20 Change-Id: Ic5bec996b7b0cd7130055d1e8ff238b5ac4292a3 Reviewed-By: Bruno Larsen Diff: --- gdb/compile/compile-internal.h | 13 ------------- gdb/compile/compile.c | 13 +++++++++++++ 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/gdb/compile/compile-internal.h b/gdb/compile/compile-internal.h index 6d6f595f139..c86d22bcf66 100644 --- a/gdb/compile/compile-internal.h +++ b/gdb/compile/compile-internal.h @@ -26,19 +26,6 @@ extern bool compile_debug; =20 struct block; =20 -/* An object that maps a gdb type to a gcc type. */ - -struct type_map_instance -{ - /* The gdb type. */ - - struct type *type; - - /* The corresponding gcc type handle. */ - - gcc_type gcc_type_handle; -}; - /* An object of this type holds state associated with a given compilation job. */ =20 diff --git a/gdb/compile/compile.c b/gdb/compile/compile.c index 853361d8200..c07686c32e0 100644 --- a/gdb/compile/compile.c +++ b/gdb/compile/compile.c @@ -74,6 +74,19 @@ struct symbol_error char *message; }; =20 +/* An object that maps a gdb type to a gcc type. */ + +struct type_map_instance +{ + /* The gdb type. */ + + struct type *type; + + /* The corresponding gcc type handle. */ + + gcc_type gcc_type_handle; +}; + /* Hash a type_map_instance. */ =20 static hashval_t