Reuse existing builtin types
This changes a few spots to reuse the existing builting "void" type, rather than construct a new one. Reviewed-By: Simon Marchi <simon.marchi@efficios.com>
This commit is contained in:
parent
8a17bdd9cc
commit
95751990e4
5 changed files with 5 additions and 11 deletions
|
@ -483,8 +483,7 @@ build_go_types (struct gdbarch *gdbarch)
|
|||
{
|
||||
struct builtin_go_type *builtin_go_type = new struct builtin_go_type;
|
||||
|
||||
builtin_go_type->builtin_void
|
||||
= arch_type (gdbarch, TYPE_CODE_VOID, TARGET_CHAR_BIT, "void");
|
||||
builtin_go_type->builtin_void = builtin_type (gdbarch)->builtin_void;
|
||||
builtin_go_type->builtin_char
|
||||
= arch_character_type (gdbarch, 8, 1, "char");
|
||||
builtin_go_type->builtin_bool
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue