diff options
| author | Sean Callanan <scallanan@apple.com> | 2015-09-02 16:39:23 +0000 | 
|---|---|---|
| committer | Sean Callanan <scallanan@apple.com> | 2015-09-02 16:39:23 +0000 | 
| commit | 4a2a71fbe481c04fb99e1fdac2e976c218c8ca59 (patch) | |
| tree | 9338398880815c8759ac2f83438c947713bab09b | |
| parent | d1f099682ea60c6e168310f95f2c3da036c3901a (diff) | |
| download | bcm5719-llvm-4a2a71fbe481c04fb99e1fdac2e976c218c8ca59.tar.gz bcm5719-llvm-4a2a71fbe481c04fb99e1fdac2e976c218c8ca59.zip  | |
Improved logging for deported types in the ClangASTImporter.
llvm-svn: 246666
| -rw-r--r-- | lldb/source/Symbol/ClangASTImporter.cpp | 12 | 
1 files changed, 10 insertions, 2 deletions
diff --git a/lldb/source/Symbol/ClangASTImporter.cpp b/lldb/source/Symbol/ClangASTImporter.cpp index 3db4c11e0b4..5ae31ae7e9d 100644 --- a/lldb/source/Symbol/ClangASTImporter.cpp +++ b/lldb/source/Symbol/ClangASTImporter.cpp @@ -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));  | 

