mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
I am doing this for a few different reasons: 1. The code for manipulating successors was partially in TermInst (with SILBasicBlock delegating to TermInst) and partly in SILBasicBlock itself. It makes more sense to just be consistent and move all said functionality into TermInst and just always delegate to SILBasicBlock. 2. I am preparing an API around gathering all critical edges. All of the critical edge breaking APIs to take a TermInst. I wanted to use some of the successor APIs, only to discover that we were not delegating to TermInst. By moving said functionality onto TermInst itself and delegating, we have it in both places. rdar://31521023
16 KiB
16 KiB