Changed FindExternalVisibleDecls() to use the module
level FindFunctions() where appropriate and not use
SymbolContext::FindFunctionsByName().
git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@141789 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Expression/ClangExpressionDeclMap.cpp b/source/Expression/ClangExpressionDeclMap.cpp
index 5e5422f..4256a18 100644
--- a/source/Expression/ClangExpressionDeclMap.cpp
+++ b/source/Expression/ClangExpressionDeclMap.cpp
@@ -2360,12 +2360,25 @@
{
const bool include_symbols = true;
const bool append = false;
- m_parser_vars->m_sym_ctx.FindFunctionsByName (name,
- eFunctionNameTypeBase,
- include_symbols,
- append,
- sc_list);
-
+
+ if (namespace_decl && module)
+ {
+ module->FindFunctions(name,
+ &namespace_decl,
+ eFunctionNameTypeBase,
+ include_symbols,
+ append,
+ sc_list);
+ }
+ else
+ {
+ target->GetImages().FindFunctions(name,
+ eFunctionNameTypeBase,
+ include_symbols,
+ append,
+ sc_list);
+ }
+
if (sc_list.GetSize())
{
bool found_specific = false;