summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSean Callanan <scallanan@apple.com>2011-10-12 17:38:09 +0000
committerSean Callanan <scallanan@apple.com>2011-10-12 17:38:09 +0000
commit25ea08ef8c49980f2177aa58311d348d3a144dd9 (patch)
treeeb30d4174061b8f2cd8d91476dc8096a4d4d5ce7
parentf37d0a61c09b90c5c112b62e679b66d0abba30d7 (diff)
downloadbcm5719-llvm-25ea08ef8c49980f2177aa58311d348d3a144dd9.tar.gz
bcm5719-llvm-25ea08ef8c49980f2177aa58311d348d3a144dd9.zip
Changed FindExternalVisibleDecls() to use the module
level FindFunctions() where appropriate and not use SymbolContext::FindFunctionsByName(). llvm-svn: 141789
-rw-r--r--lldb/source/Expression/ClangExpressionDeclMap.cpp25
1 files changed, 19 insertions, 6 deletions
diff --git a/lldb/source/Expression/ClangExpressionDeclMap.cpp b/lldb/source/Expression/ClangExpressionDeclMap.cpp
index 5e5422f2731..4256a1827e8 100644
--- a/lldb/source/Expression/ClangExpressionDeclMap.cpp
+++ b/lldb/source/Expression/ClangExpressionDeclMap.cpp
@@ -2360,12 +2360,25 @@ ClangExpressionDeclMap::FindExternalVisibleDecls (NameSearchContext &context,
{
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;
OpenPOWER on IntegriCloud