aboutsummaryrefslogtreecommitdiff
path: root/gdb/compile/compile-internal.h
diff options
context:
space:
mode:
authorKeith Seitz <keiths@redhat.com>2018-08-10 10:52:13 -0700
committerKeith Seitz <keiths@redhat.com>2018-08-10 11:14:25 -0700
commit946d3d10e7609e074be30db8662cb9c4a3d8961d (patch)
tree659dad392e54f9f8bb87b8a3c0a4a9434e1109da /gdb/compile/compile-internal.h
parent9cdfd9a26ef63ef2fee58c0e7475b5373b61e5d1 (diff)
downloadgdb-946d3d10e7609e074be30db8662cb9c4a3d8961d.zip
gdb-946d3d10e7609e074be30db8662cb9c4a3d8961d.tar.gz
gdb-946d3d10e7609e074be30db8662cb9c4a3d8961d.tar.bz2
Move compile_instance to compile.c
This simple patch moves any code related to compile_instance into compile.c, reserving compile-c-* files strictly for C language support. gdb/ChangeLog: * compile/compile-c-symbols.c (struct symbol_error) (hash_symbol_error, eq_symbol_error, del_symbol_error) (compile_instance::insert_symbol_error) (compile_instance::error_symbol_once): Move to ... * compile/compile.c: ... here.
Diffstat (limited to 'gdb/compile/compile-internal.h')
-rw-r--r--gdb/compile/compile-internal.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/gdb/compile/compile-internal.h b/gdb/compile/compile-internal.h
index 89dd1e5..3916f84 100644
--- a/gdb/compile/compile-internal.h
+++ b/gdb/compile/compile-internal.h
@@ -25,6 +25,19 @@ extern int 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. */