[Serialization] Write in the swiftmodule if it's built from a swiftinterface

This information will allow us to distinguish swiftmodule built from
source vs swiftinterface.
This commit is contained in:
Alexis Laferrière
2022-10-25 13:40:52 -07:00
parent 79565a4f9e
commit 2854c1b3cb
10 changed files with 46 additions and 3 deletions

View File

@@ -770,6 +770,8 @@ LoadedFile *SerializedModuleLoaderBase::loadAST(
M.setImplicitDynamicEnabled();
if (loadedModuleFile->hasIncrementalInfo())
M.setHasIncrementalInfo();
if (loadedModuleFile->isBuiltFromInterface())
M.setIsBuiltFromInterface();
if (!loadedModuleFile->getModuleABIName().empty())
M.setABIName(Ctx.getIdentifier(loadedModuleFile->getModuleABIName()));
if (loadedModuleFile->isConcurrencyChecked())