[Lldb-commits] [PATCH] D147362: [lldb] Add Clang module import logging
Dave Lee via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Sat Apr 1 08:35:33 PDT 2023
kastiglione updated this revision to Diff 510234.
kastiglione added a comment.
Add -Rmodule-import flag
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D147362/new/
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;
}
@@ -671,7 +678,8 @@
"-fmodules-validate-system-headers",
"-Werror=non-modular-include-in-framework-module",
"-Xclang=-fincremental-extensions",
- "-Rmodule-build"};
+ "-Rmodule-build",
+ "-Rmodule-import"};
target.GetPlatform()->AddClangModuleCompilationOptions(
&target, compiler_invocation_arguments);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D147362.510234.patch
Type: text/x-patch
Size: 1069 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20230401/02cfb6dd/attachment.bin>
More information about the lldb-commits
mailing list