[v2,01/13] gdb: move type_map_instance to compile/compile.c

Message ID 20221214033441.499512-2-simon.marchi@polymtl.ca
State Committed
Headers
Series Make frame_info_ptr automatic |

Commit Message

Simon Marchi Dec. 14, 2022, 3:34 a.m. UTC
  From: Simon Marchi <simon.marchi@efficios.com>

It's only used in compile/compile.c, it doesn't need to be in a header.

Change-Id: Ic5bec996b7b0cd7130055d1e8ff238b5ac4292a3
---
 gdb/compile/compile-internal.h | 13 -------------
 gdb/compile/compile.c          | 13 +++++++++++++
 2 files changed, 13 insertions(+), 13 deletions(-)
  

Patch

diff --git a/gdb/compile/compile-internal.h b/gdb/compile/compile-internal.h
index 042ddf9c5f92..0d3fcd76f0c0 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 2843f05fdd7d..65bbf6711635 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