mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user