mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 01:07:52 +00:00
Use domain_search_flags in lookup_symbol et al
This changes lookup_symbol and associated APIs to accept domain_search_flags rather than a domain_enum. Note that this introduces some new constants to Python and Guile. I chose to break out the documentation patch for this, because the internals here do not change until a later patch, and it seemed simpler to patch the docs just once, rather than twice.
This commit is contained in:
@@ -944,7 +944,8 @@ language_arch_info::bool_type () const
|
||||
{
|
||||
struct symbol *sym;
|
||||
|
||||
sym = lookup_symbol (m_bool_type_name, NULL, VAR_DOMAIN, NULL).symbol;
|
||||
sym = lookup_symbol (m_bool_type_name, nullptr, SEARCH_TYPE_DOMAIN,
|
||||
nullptr).symbol;
|
||||
if (sym != nullptr)
|
||||
{
|
||||
struct type *type = sym->type ();
|
||||
|
||||
Reference in New Issue
Block a user