move "override" onto the new fangle decl modifier code, instead of being a virtual

attribute.  As part of this, introduce a new "NotSerialized" flag in Attr.def.
This eliminates a bunch of special case code in the parser and elsewhere for handling
this modifier.



Swift SVN r19997
This commit is contained in:
Chris Lattner
2014-07-16 01:23:58 +00:00
parent 36b035b93b
commit fe30b66a93
13 changed files with 66 additions and 133 deletions

View File

@@ -328,14 +328,6 @@ struct ASTNodeBase {};
PrettyStackTraceDecl debugStack("verifying DeclContext", D);
abort();
}
if (D->getAttrs().hasAttribute<OverrideAttr>()) {
if (!isa<FuncDecl>(D) && !isa<VarDecl>(D) && !isa<SubscriptDecl>(D)) {
PrettyStackTraceDecl debugStack("verifying override", D);
Out << "'override' attribute on a non-overridable member\n";
D->dump(Out);
abort();
}
}
}
template<typename T>
void verifyParsedBase(T ASTNode) {