Remove the default handle-all Decl and DeclAttribute

cases from ASTVisitor and privatize SILGen's statement
emitter.  NFC.

Swift SVN r26402
This commit is contained in:
John McCall
2015-03-22 03:22:45 +00:00
parent bd88d3f777
commit 080b7dfabf
13 changed files with 265 additions and 211 deletions

View File

@@ -781,6 +781,10 @@ public:
return Result;
}
void visitDecl(Decl *D) {
// FIXME: maybe don't have a default case
}
void visitStructDecl(StructDecl *SD) {
auto ResultSD = std::make_shared<sma::StructDecl>();
ResultSD->Name = convertToIdentifier(SD->getName());