Skip to content

Commit 4c53a85

Browse files
Merge pull request #4034 from adrian-prantl/ast-path
Elevate missing swift ast warning to health log
2 parents f1cb889 + e76dc34 commit 4c53a85

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

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

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8106,10 +8106,14 @@ static swift::ModuleDecl *LoadOneModule(const SourceModule &module,
81068106
// checked that DWARF debug info for this module actually exists
81078107
// and there is no good mechanism to do so ahead of time.
81088108
// We do know that we never load the stdlib from DWARF though.
8109-
LOG_PRINTF(GetLog(LLDBLog::Types | LLDBLog::Expressions),
8110-
"\"Imported\" module %s via SwiftDWARFImporterDelegate "
8111-
"(no Swift AST or Clang module found)",
8112-
toplevel.AsCString());
8109+
HEALTH_LOG_PRINTF(
8110+
"Missing Swift module or Clang module found for \"%s\""
8111+
", \"imported\" via SwiftDWARFImporterDelegate. Hint: %s",
8112+
toplevel.AsCString(),
8113+
swift_ast_context.GetTriple().isOSDarwin()
8114+
? "Register Swift modules with the linker using -add_ast_path."
8115+
: "Swift modules can be wrapped in object containers using "
8116+
"-module-wrap and linked.");
81138117

81148118
if (toplevel.GetStringRef() == swift::STDLIB_NAME)
81158119
swift_module = nullptr;

0 commit comments

Comments
 (0)