#include "language.h"
#include "namespace.h"
#include "inferior.h"
-#include <map>
+#include "gdbsupport/unordered_map.h"
#include <string>
#include <string.h>
return sym;
}
+/* Type used for collecting symbols. Maps names to symbols. */
+using symbol_map = gdb::unordered_map<std::string, block_symbol>;
+
/* This version of the function is internal, use the wrapper unless
the list of ambiguous symbols is needed.
const int search_scope_first,
const int declaration_only,
const int search_parents,
- std::map<std::string,
- struct block_symbol>& found_symbols)
+ symbol_map &found_symbols)
{
struct block_symbol sym = {};
int len;
const int declaration_only,
const int search_parents)
{
- std::map<std::string, struct block_symbol> found_symbols;
+ symbol_map found_symbols;
cp_lookup_symbol_via_imports(scope, name, block, domain, 0,
declaration_only, search_parents,