From: Simon Marchi Date: Wed, 14 Dec 2022 03:34:29 +0000 (-0500) Subject: gdb: move type_map_instance to compile/compile.c X-Git-Tag: binutils-2_41~2162 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c85555b1a8676145695cf5783df4d95c509ed82f;p=thirdparty%2Fbinutils-gdb.git 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 --- 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