Kill [stdlib] attribute.

Now that we have true serialized modules, the standard library can import
the Builtin module without any special direction (beyond -parse-stdlib),
and anyone can include those modules without special direction.

Swift SVN r6752
This commit is contained in:
Jordan Rose
2013-07-30 21:27:42 +00:00
parent 21785c8a36
commit 3e7eef56e7
17 changed files with 28 additions and 77 deletions

View File

@@ -597,8 +597,7 @@ Module *ModuleFile::getModule(Identifier name) {
auto importer = ModuleContext->Ctx.getClangModuleLoader();
assert(importer && "no way to import shadowed module (recursive xref?)");
ShadowedModule = importer->loadModule(SourceLoc(),
std::make_pair(name, SourceLoc()),
false);
std::make_pair(name, SourceLoc()));
assert(ShadowedModule && "missing shadowed module");
}
@@ -606,8 +605,7 @@ Module *ModuleFile::getModule(Identifier name) {
}
// FIXME: provide a real source location.
return ModuleContext->Ctx.getModule(std::make_pair(name, SourceLoc()),
false);
return ModuleContext->Ctx.getModule(std::make_pair(name, SourceLoc()));
}