mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
AST: Record -sil-serialize-all in the ModuleDecl
We want to distinguish the special case of a library built with -sil-serialize-all, from a SIL function that is [fragile] because of an explicitly @_transparent or @inline(__always). For now, NFC.
This commit is contained in:
@@ -170,14 +170,14 @@ FileUnit *SerializedModuleLoader::loadAST(
|
||||
if (err == serialization::Status::Valid) {
|
||||
Ctx.bumpGeneration();
|
||||
|
||||
M.setResilienceStrategy(extendedInfo.getResilienceStrategy());
|
||||
|
||||
// We've loaded the file. Now try to bring it into the AST.
|
||||
auto fileUnit = new (Ctx) SerializedASTFile(M, *loadedModuleFile,
|
||||
extendedInfo.isSIB());
|
||||
M.addFile(*fileUnit);
|
||||
if (extendedInfo.isTestable())
|
||||
M.setTestingEnabled();
|
||||
if (extendedInfo.isResilient())
|
||||
M.setResilienceEnabled();
|
||||
|
||||
auto diagLocOrInvalid = diagLoc.getValueOr(SourceLoc());
|
||||
err = loadedModuleFile->associateWithFileContext(fileUnit,
|
||||
|
||||
Reference in New Issue
Block a user