Inline emitRethrowBB into its only caller, simplifying things.

Have emitEpilog take care of calling emitRethrowEpilog, relieving
its clients from having to do it everywhere.  NFC.



Swift SVN r27469
This commit is contained in:
Chris Lattner
2015-04-19 21:43:06 +00:00
parent 25cb47879b
commit 8dce0ff78d
3 changed files with 12 additions and 30 deletions

View File

@@ -410,7 +410,6 @@ void SILGenFunction::emitFunction(FuncDecl *fd) {
emitStmt(fd->getBody());
emitEpilog(fd);
emitRethrowEpilog(fd);
}
void SILGenFunction::emitClosure(AbstractClosureExpr *ace) {
@@ -431,7 +430,6 @@ void SILGenFunction::emitClosure(AbstractClosureExpr *ace) {
autoclosure->getSingleExpressionBody());
}
emitEpilog(ace);
emitRethrowEpilog(ace);
}
void SILGenFunction::emitArtificialTopLevel(ClassDecl *mainClass) {