public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
From: Simon Marchi <simark@sourceware.org>
To: gdb-cvs@sourceware.org
Subject: [binutils-gdb] gdb: move type_map_instance to compile/compile.c
Date: Fri, 20 Jan 2023 19:52:11 +0000 (GMT)	[thread overview]
Message-ID: <20230120195211.D8F9F3858D20@sourceware.org> (raw)

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=c85555b1a8676145695cf5783df4d95c509ed82f

commit c85555b1a8676145695cf5783df4d95c509ed82f
Author: Simon Marchi <simon.marchi@efficios.com>
Date:   Tue Dec 13 22:34:29 2022 -0500

    gdb: move type_map_instance to compile/compile.c
    
    It's only used in compile/compile.c, it doesn't need to be in a header.
    
    Change-Id: Ic5bec996b7b0cd7130055d1e8ff238b5ac4292a3
    Reviewed-By: Bruno Larsen <blarsen@redhat.com>

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;
 
 struct block;
 
-/* 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.  */
 
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;
 };
 
+/* 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.  */
 
 static hashval_t

                 reply	other threads:[~2023-01-20 19:52 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230120195211.D8F9F3858D20@sourceware.org \
    --to=simark@sourceware.org \
    --cc=gdb-cvs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).