Expose an ImportNonPublicDependencies LangOpt for LLDB (NFC).

This patch allows controlling the automatic import of private dependencies
separately from the DebuggerSupport option, which currently also triggers this
behavior. With explicit modules + precise compiler invocations LLDB is moving
towards no longer needing this behavior.

rdar://133088201
(cherry picked from commit a1ba7159e3)
This commit is contained in:
Adrian Prantl
2024-08-02 14:13:01 -07:00
parent eea22c2f09
commit f0902a9163
5 changed files with 17 additions and 18 deletions

View File

@@ -412,7 +412,7 @@ SerializedModuleLoaderBase::getImportsOfModule(
ModuleLoadingBehavior dependencyTransitiveBehavior =
loadedModuleFile.getTransitiveLoadingBehavior(
dependency,
/*debuggerMode*/ false,
/*importPrivateDependencies*/ false,
/*isPartialModule*/ false, packageName, isTestableImport);
if (dependencyTransitiveBehavior > transitiveBehavior)
continue;