mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
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:
@@ -309,11 +309,9 @@ ModuleFile::getTransitiveLoadingBehavior(const Dependency &dependency,
|
||||
// as a partial module.
|
||||
auto isPartialModule = mod->isMainModule();
|
||||
|
||||
return Core->getTransitiveLoadingBehavior(dependency.Core,
|
||||
ctx.LangOpts.DebuggerSupport,
|
||||
isPartialModule,
|
||||
ctx.LangOpts.PackageName,
|
||||
forTestable);
|
||||
return Core->getTransitiveLoadingBehavior(
|
||||
dependency.Core, ctx.LangOpts.ImportNonPublicDependencies,
|
||||
isPartialModule, ctx.LangOpts.PackageName, forTestable);
|
||||
}
|
||||
|
||||
bool ModuleFile::mayHaveDiagnosticsPointingAtBuffer() const {
|
||||
|
||||
Reference in New Issue
Block a user