diff --git a/include/ircd/mods/symbols.h b/include/ircd/mods/symbols.h index e07cf1ef7..b90eb2bf1 100644 --- a/include/ircd/mods/symbols.h +++ b/include/ircd/mods/symbols.h @@ -19,9 +19,9 @@ namespace ircd::mods std::vector symbols(const string_view &fullpath, const string_view §ion); std::vector symbols(const string_view &fullpath); - std::unordered_map mangles(const std::vector &); - std::unordered_map mangles(const string_view &fullpath, const string_view §ion); - std::unordered_map mangles(const string_view &fullpath); + std::map mangles(const std::vector &); + std::map mangles(const string_view &fullpath, const string_view §ion); + std::map mangles(const string_view &fullpath); // Find module names where symbol resides bool has_symbol(const string_view &name, const string_view &symbol, const string_view §ion = {}); diff --git a/ircd/mods.cc b/ircd/mods.cc index 718190842..138e08e0f 100644 --- a/ircd/mods.cc +++ b/ircd/mods.cc @@ -819,23 +819,23 @@ ircd::mods::has_symbol(const string_view &name, return std::find(begin(syms), end(syms), symbol) != end(syms); } -std::unordered_map +std::map ircd::mods::mangles(const string_view &path) { return mangles(mods::symbols(path)); } -std::unordered_map +std::map ircd::mods::mangles(const string_view &path, const string_view §ion) { return mangles(mods::symbols(path, section)); } -std::unordered_map +std::map ircd::mods::mangles(const std::vector &symbols) { - std::unordered_map ret; + std::map ret; for(const auto &sym : symbols) try { ret.emplace(demangle(sym), sym);