diff options
Diffstat (limited to 'lldb/source/Expression/ClangASTSource.cpp')
-rw-r--r-- | lldb/source/Expression/ClangASTSource.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/lldb/source/Expression/ClangASTSource.cpp b/lldb/source/Expression/ClangASTSource.cpp index 266dce84464..c394a8cb6f0 100644 --- a/lldb/source/Expression/ClangASTSource.cpp +++ b/lldb/source/Expression/ClangASTSource.cpp @@ -367,7 +367,9 @@ clang::ExternalLoadResult ClangASTSource::FindExternalLexicalDecls (const DeclContext *decl_context, bool (*predicate)(Decl::Kind), llvm::SmallVectorImpl<Decl*> &decls) -{ +{ + ClangASTMetrics::RegisterLexicalQuery(); + lldb::LogSP log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_EXPRESSIONS)); const Decl *context_decl = dyn_cast<Decl>(decl_context); @@ -485,6 +487,8 @@ ClangASTSource::FindExternalVisibleDecls (NameSearchContext &context) { assert (m_ast_context); + ClangASTMetrics::RegisterVisibleQuery(); + const ConstString name(context.m_decl_name.getAsString().c_str()); lldb::LogSP log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_EXPRESSIONS)); @@ -1435,6 +1439,8 @@ ClangASTSource::layoutRecordType(const RecordDecl *record, BaseOffsetMap &base_offsets, BaseOffsetMap &virtual_base_offsets) { + ClangASTMetrics::RegisterRecordLayout(); + static unsigned int invocation_id = 0; unsigned int current_id = invocation_id++; @@ -1677,7 +1683,9 @@ void * ClangASTSource::GuardedCopyType (ASTContext *dest_context, ASTContext *source_context, void *clang_type) -{ +{ + ClangASTMetrics::RegisterLLDBImport(); + SetImportInProgress(true); QualType ret_qual_type = m_ast_importer->CopyType (m_ast_context, source_context, QualType::getFromOpaquePtr(clang_type)); |