File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -385,6 +385,12 @@ namespace swift {
385
385
// / Load swiftmodule files in memory as volatile and avoid mmap.
386
386
bool EnableVolatileModules = false ;
387
387
388
+ // / Allow deserializing implementation only dependencies. This should only
389
+ // / be set true by lldb and other tooling, so that deserilization
390
+ // / recovery issues won't bring down the debugger.
391
+ // / TODO: remove this when @_implementationOnly modules are robust enough.
392
+ bool AllowDeserializingImplementationOnly = false ;
393
+
388
394
// / Sets the target we are building for and updates platform conditions
389
395
// / to match.
390
396
// /
Original file line number Diff line number Diff line change @@ -2006,7 +2006,8 @@ ModuleDecl *ModuleFile::getModule(ModuleID MID) {
2006
2006
llvm_unreachable (" implementation detail only" );
2007
2007
}
2008
2008
}
2009
- return getModule (getIdentifier (MID));
2009
+ return getModule (getIdentifier (MID),
2010
+ getContext ().LangOpts .AllowDeserializingImplementationOnly );
2010
2011
}
2011
2012
2012
2013
ModuleDecl *ModuleFile::getModule (ArrayRef<Identifier> name,
You can’t perform that action at this time.
0 commit comments