SILGen: Implement switch statements.

This should bring SILGen up to feature parity with the old backend. This implementation also now supports fallthrough.

Swift SVN r4858
This commit is contained in:
Joe Groff
2013-04-22 01:10:06 +00:00
parent 5633e656fa
commit 11109a9376
8 changed files with 222 additions and 19 deletions

View File

@@ -73,6 +73,10 @@ public:
void setInsertionPoint(SILBasicBlock *BB) {
setInsertionPoint(BB, BB->end());
}
SILBasicBlock *getInsertionPoint() const {
return BB;
}
/// emitBlock - Each basic block is individually new'd then emitted with
/// this function. Since each block is implicitly added to the Function's