mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Merge remote-tracking branch 'origin/main' into main-to-rebranch
Conflicts: - `lib/Serialization/ModuleFileSharedCore.cpp` new headers on main
This commit is contained in:
@@ -116,6 +116,8 @@ ModuleFile::ModuleFile(std::shared_ptr<const ModuleFileSharedCore> core)
|
||||
Dependencies.emplace_back(coreDep);
|
||||
}
|
||||
|
||||
MacroModuleNames = core->MacroModuleNames;
|
||||
|
||||
// `ModuleFileSharedCore` has immutable data, we copy these into `ModuleFile`
|
||||
// so we can mutate the arrays and replace the offsets with AST object
|
||||
// pointers as we lazily deserialize them.
|
||||
@@ -534,6 +536,11 @@ void ModuleFile::getImportedModules(SmallVectorImpl<ImportedModule> &results,
|
||||
}
|
||||
}
|
||||
|
||||
void ModuleFile::getExternalMacros(
|
||||
SmallVectorImpl<ExternalMacroPlugin> ¯os) {
|
||||
macros = MacroModuleNames;
|
||||
}
|
||||
|
||||
void ModuleFile::getImportDecls(SmallVectorImpl<Decl *> &Results) {
|
||||
if (!Bits.ComputedImportDecls) {
|
||||
ASTContext &Ctx = getContext();
|
||||
|
||||
Reference in New Issue
Block a user