[Lldb-commits] [lldb] r141789 - /lldb/trunk/source/Expression/ClangExpressionDeclMap.cpp
Sean Callanan
scallanan at apple.com
Wed Oct 12 10:38:09 PDT 2011
Author: spyffe
Date: Wed Oct 12 12:38:09 2011
New Revision: 141789
URL: http://llvm.org/viewvc/llvm-project?rev=141789&view=rev
Log:
Changed FindExternalVisibleDecls() to use the module
level FindFunctions() where appropriate and not use
SymbolContext::FindFunctionsByName().
Modified:
lldb/trunk/source/Expression/ClangExpressionDeclMap.cpp
Modified: lldb/trunk/source/Expression/ClangExpressionDeclMap.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Expression/ClangExpressionDeclMap.cpp?rev=141789&r1=141788&r2=141789&view=diff
==============================================================================
--- lldb/trunk/source/Expression/ClangExpressionDeclMap.cpp (original)
+++ lldb/trunk/source/Expression/ClangExpressionDeclMap.cpp Wed Oct 12 12:38:09 2011
@@ -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;
More information about the lldb-commits
mailing list