mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-05 15:15:42 +00:00
Introduce language_defn::lookup_symbol_local
This introduces the new method language_defn::lookup_symbol_local, and then changes lookup_symbol_local to use it. This removes an explicit language check from this function, and makes it easier for other languages to hook into this code.
This commit is contained in:
11
gdb/f-lang.c
11
gdb/f-lang.c
@@ -1711,6 +1711,17 @@ f_language::search_name_hash (const char *name) const
|
||||
|
||||
/* See language.h. */
|
||||
|
||||
struct block_symbol
|
||||
f_language::lookup_symbol_local (const char *scope,
|
||||
const char *name,
|
||||
const struct block *block,
|
||||
const domain_search_flags domain) const
|
||||
{
|
||||
return cp_lookup_symbol_imports (scope, name, block, domain);
|
||||
}
|
||||
|
||||
/* See language.h. */
|
||||
|
||||
struct block_symbol
|
||||
f_language::lookup_symbol_nonlocal (const char *name,
|
||||
const struct block *block,
|
||||
|
||||
Reference in New Issue
Block a user