mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Move @exported to use new attribute infrastructure
Swift SVN r16158
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user