Move @exported to use new attribute infrastructure

Swift SVN r16158
This commit is contained in:
Dmitri Hrybenko
2014-04-10 13:35:35 +00:00
parent cc30070f68
commit 110f85bc16
16 changed files with 118 additions and 66 deletions

View File

@@ -932,9 +932,12 @@ void ModuleFile::getImportDecls(SmallVectorImpl<Decl *> &Results) {
AccessPath.push_back({ ScopeID, SourceLoc() });
}
ImportDecls.push_back(ImportDecl::create(
Ctx, FileContext, SourceLoc(), Kind, SourceLoc(), Dep.IsExported,
AccessPath));
auto *ID = ImportDecl::create(Ctx, FileContext, SourceLoc(), Kind,
SourceLoc(), AccessPath);
if (Dep.IsExported)
ID->getMutableAttrs().add(
new (Ctx) ExportedAttr(/*IsImplicit=*/false));
ImportDecls.push_back(ID);
}
Bits.ComputedImportDecls = true;
}