Skip to content

Commit 3ec3d24

Browse files
committed
Remove outdated and misleading log message.
It produces very confusing log messages when running on a non-Swift CU. rdar://82305887
1 parent 86aaebf commit 3ec3d24

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

lldb/source/Plugins/TypeSystem/Swift/SwiftASTContext.cpp

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1658,17 +1658,6 @@ lldb::TypeSystemSP SwiftASTContext::CreateInstance(lldb::LanguageType language,
16581658
return {};
16591659
}
16601660

1661-
lldb::CompUnitSP main_compile_unit_sp = module.GetCompileUnitAtIndex(0);
1662-
1663-
if (lldb_private::GetLogIfAllCategoriesSet(LIBLLDB_LOG_TYPES) &&
1664-
main_compile_unit_sp &&
1665-
!FileSystem::Instance().Exists(main_compile_unit_sp->GetPrimaryFile())) {
1666-
LOG_PRINTF(LIBLLDB_LOG_TYPES,
1667-
"Corresponding source not found for %s, loading module "
1668-
"is unlikely to succeed",
1669-
main_compile_unit_sp->GetPrimaryFile().GetCString());
1670-
}
1671-
16721661
llvm::Triple triple = GetSwiftFriendlyTriple(arch.GetTriple());
16731662
if (triple.getOS() == llvm::Triple::UnknownOS) {
16741663
// cl_kernels are the only binaries that don't have an

0 commit comments

Comments
 (0)