mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Provide a skeleton for re-exports from serialized modules...
...and use it for shadowed modules (e.g. the Clang module "Foundation" referenced by the Swift module "Foundation"), so that we can actually find "NSString" when building AppKit. Additionally, record shadowed modules as dependencies, so that they can be loaded when the adapter module is loaded. Swift SVN r6522
This commit is contained in:
@@ -247,8 +247,13 @@ OperatorDecl *SerializedModuleLoader::lookupOperator(Module *module,
|
||||
return moduleFile->lookupOperator(name, fixity);
|
||||
}
|
||||
|
||||
void SerializedModuleLoader::loadExtensions(NominalTypeDecl *nominal,
|
||||
unsigned previousGeneration) {
|
||||
// FIXME: Look for extensions of the given nominal type within the
|
||||
// serialized module.
|
||||
void SerializedModuleLoader::getReexportedModules(
|
||||
Module *module,
|
||||
SmallVectorImpl<swift::Module *> &exports) {
|
||||
|
||||
ModuleFile *moduleFile = cast<SerializedModule>(module)->File;
|
||||
if (!moduleFile)
|
||||
return;
|
||||
|
||||
moduleFile->getReexportedModules(exports);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user