summaryrefslogtreecommitdiffstats
path: root/lldb/source/Expression/ClangASTSource.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2010-11-15 01:34:18 +0000
committerGreg Clayton <gclayton@apple.com>2010-11-15 01:34:18 +0000
commit471da24dfa31382c12c399bda53aa0d0fe441398 (patch)
tree9001ca6a9d07bfc0a21b216550da8caa9ae0a8dd /lldb/source/Expression/ClangASTSource.cpp
parentce5c9a8f31aec667bc9f0d0240888667386b2bf4 (diff)
downloadbcm5719-llvm-471da24dfa31382c12c399bda53aa0d0fe441398.tar.gz
bcm5719-llvm-471da24dfa31382c12c399bda53aa0d0fe441398.zip
Added recursive name lookup logging with depth which is commented out and is currently only enabled when we blow the stack.
llvm-svn: 119101
Diffstat (limited to 'lldb/source/Expression/ClangASTSource.cpp')
-rw-r--r--lldb/source/Expression/ClangASTSource.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/lldb/source/Expression/ClangASTSource.cpp b/lldb/source/Expression/ClangASTSource.cpp
index aa69abf1faf..330c1da8129 100644
--- a/lldb/source/Expression/ClangASTSource.cpp
+++ b/lldb/source/Expression/ClangASTSource.cpp
@@ -99,10 +99,14 @@ DeclContext::lookup_result ClangASTSource::FindExternalVisibleDeclsByName
return DeclContext::lookup_result();
}
m_active_lookups.insert(uniqued_const_decl_name);
+// static uint32_t g_depth = 0;
+// ++g_depth;
+// printf("[%5u] FindExternalVisibleDeclsByName() \"%s\"\n", g_depth, uniqued_const_decl_name);
llvm::SmallVector<NamedDecl*, 4> name_decls;
NameSearchContext name_search_context(*this, name_decls, clang_decl_name, decl_ctx);
m_decl_map.GetDecls(name_search_context, const_decl_name);
DeclContext::lookup_result result (SetExternalVisibleDeclsForName (decl_ctx, clang_decl_name, name_decls));
+// --g_depth;
m_active_lookups.erase (uniqued_const_decl_name);
return result;
}
OpenPOWER on IntegriCloud