Add initializers to bound_minimal_symbol

This adds initializers to bound_minimal_symbol, allowing for the
removal of some calls to memset.
This commit is contained in:
Tom Tromey 2022-02-08 13:41:53 -07:00
parent e951225303
commit 29ba33db77
4 changed files with 4 additions and 12 deletions

View file

@ -4562,8 +4562,6 @@ ada_lookup_simple_minsym (const char *name)
{
struct bound_minimal_symbol result;
memset (&result, 0, sizeof (result));
symbol_name_match_type match_type = name_match_type_from_name (name);
lookup_name_info lookup_name (name, match_type);