now that DeclAttributes is a single word, there is no reason to deal with

it indirectly through another pointer from Decl, just embed DeclAttributes
directly into Decl and get rid of the "getMutableAttrs" nonsense.



Swift SVN r20216
This commit is contained in:
Chris Lattner
2014-07-20 04:09:42 +00:00
parent 6ad0245591
commit 48687380b7
14 changed files with 111 additions and 120 deletions

View File

@@ -979,7 +979,7 @@ void ModuleFile::getImportDecls(SmallVectorImpl<Decl *> &Results) {
auto *ID = ImportDecl::create(Ctx, FileContext, SourceLoc(), Kind,
SourceLoc(), AccessPath);
if (Dep.isExported())
ID->getMutableAttrs().add(
ID->getAttrs().add(
new (Ctx) ExportedAttr(/*IsImplicit=*/false));
ImportDecls.push_back(ID);
}