mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Merge remote-tracking branch 'origin/master' into master-next
This commit is contained in:
@@ -678,8 +678,7 @@ FileUnit *SerializedModuleLoaderBase::loadAST(
|
||||
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());
|
||||
auto fileUnit = new (Ctx) SerializedASTFile(M, *loadedModuleFile);
|
||||
M.addFile(*fileUnit);
|
||||
if (extendedInfo.isTestable())
|
||||
M.setTestingEnabled();
|
||||
@@ -1101,6 +1100,10 @@ void SerializedASTFile::collectLinkLibraries(
|
||||
}
|
||||
}
|
||||
|
||||
bool SerializedASTFile::isSIB() const {
|
||||
return File.IsSIB;
|
||||
}
|
||||
|
||||
bool SerializedASTFile::isSystemModule() const {
|
||||
if (auto Mod = File.getUnderlyingModule()) {
|
||||
return Mod->isSystemModule();
|
||||
|
||||
Reference in New Issue
Block a user