[llvm] Print source filename when invalid debug info is found in LTO. (PR #138201)
Adrian Prantl via llvm-commits
llvm-commits at lists.llvm.org
Thu May 1 14:18:37 PDT 2025
================
@@ -182,6 +182,8 @@ static void verifyLoadedModule(Module &TheModule) {
if (BrokenDebugInfo) {
TheModule.getContext().diagnose(ThinLTODiagnosticInfo(
"Invalid debug info found, debug info will be stripped", DS_Warning));
+ TheModule.getContext().diagnose(ThinLTODiagnosticInfo(
+ "Source File Name: " + TheModule.getSourceFileName(), DS_Warning));
----------------
adrian-prantl wrote:
the formatting is inconsistent with the one above
https://github.com/llvm/llvm-project/pull/138201
More information about the llvm-commits
mailing list