kastiglione created this revision. kastiglione added a reviewer: aprantl. Herald added a project: All. kastiglione requested review of this revision. Herald added a project: LLDB. Herald added a subscriber: lldb-commits.
Log Clang module imports to lldb's `expr` channel. This is minor add-on to D140056 <https://reviews.llvm.org/D140056>, which logs module _builds_ while also broadcasting Progress events. Repository: rG LLVM Github Monorepo https://reviews.llvm.org/D147362 Files: lldb/source/Plugins/ExpressionParser/Clang/ClangModulesDeclVendor.cpp Index: lldb/source/Plugins/ExpressionParser/Clang/ClangModulesDeclVendor.cpp =================================================================== --- lldb/source/Plugins/ExpressionParser/Clang/ClangModulesDeclVendor.cpp +++ lldb/source/Plugins/ExpressionParser/Clang/ClangModulesDeclVendor.cpp @@ -219,6 +219,13 @@ LLDB_LOG(log, "Finished building Clang module {0}", module_name); return true; } + case clang::diag::remark_module_import: { + const auto &module_name = info.getArgStdStr(0); + const auto &module_path = info.getArgStdStr(1); + LLDB_LOG(log, "Importing Clang module {0} from {1}", module_name, + module_path); + return true; + } default: return false; }
Index: lldb/source/Plugins/ExpressionParser/Clang/ClangModulesDeclVendor.cpp =================================================================== --- lldb/source/Plugins/ExpressionParser/Clang/ClangModulesDeclVendor.cpp +++ lldb/source/Plugins/ExpressionParser/Clang/ClangModulesDeclVendor.cpp @@ -219,6 +219,13 @@ LLDB_LOG(log, "Finished building Clang module {0}", module_name); return true; } + case clang::diag::remark_module_import: { + const auto &module_name = info.getArgStdStr(0); + const auto &module_path = info.getArgStdStr(1); + LLDB_LOG(log, "Importing Clang module {0} from {1}", module_name, + module_path); + return true; + } default: return false; }
_______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits