Improved logging for deported types in the ClangASTImporter.

llvm-svn: 246666
This commit is contained in:
Sean Callanan 2015-09-02 16:39:23 +00:00
parent d1f099682e
commit 4a2a71fbe4
1 changed files with 10 additions and 2 deletions

View File

@ -241,7 +241,15 @@ lldb::clang_type_t
ClangASTImporter::DeportType (clang::ASTContext *dst_ctx,
clang::ASTContext *src_ctx,
lldb::clang_type_t type)
{
{
Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_EXPRESSIONS));
if (log)
log->Printf(" [ClangASTImporter] DeportType called on (%sType*)0x%llx from (ASTContext*)%p to (ASTContext*)%p",
QualType::getFromOpaquePtr(type)->getTypeClassName(), (unsigned long long)type,
static_cast<void*>(src_ctx),
static_cast<void*>(dst_ctx));
MinionSP minion_sp (GetMinion (dst_ctx, src_ctx));
if (!minion_sp)
@ -279,7 +287,7 @@ ClangASTImporter::DeportDecl (clang::ASTContext *dst_ctx,
Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_EXPRESSIONS));
if (log)
log->Printf(" [ClangASTImporter] DeportDecl called on (%sDecl*)%p from (ASTContext*)%p to (ASTContex*)%p",
log->Printf(" [ClangASTImporter] DeportDecl called on (%sDecl*)%p from (ASTContext*)%p to (ASTContext*)%p",
decl->getDeclKindName(), static_cast<void*>(decl),
static_cast<void*>(src_ctx),
static_cast<void*>(dst_ctx));