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:
Jordan Rose
2013-07-23 23:10:13 +00:00
parent f12f3c29ac
commit 110d644297
9 changed files with 94 additions and 49 deletions

View File

@@ -368,6 +368,11 @@ LoadedModule::lookupOperator<InfixOperatorDecl>(Identifier name) {
return cast_or_null<InfixOperatorDecl>(result);
}
void LoadedModule::getReexportedModules(SmallVectorImpl<Module *> &exports) {
auto owner = static_cast<ModuleLoader*>(LookupCachePimpl);
return owner->getReexportedModules(this, exports);
}
//===----------------------------------------------------------------------===//