Skip to content

Commit 65b7f57

Browse files
committed
SIL: make Builde.insertionPoint public
1 parent 11631c0 commit 65b7f57

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

SwiftCompilerSources/Sources/SIL/Builder.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@ public struct Builder {
2424
case staticInitializer(GlobalVariable)
2525
}
2626

27-
let insertAt: InsertionPoint
27+
public let insertionPoint: InsertionPoint
2828
let location: Location
2929
private let notificationHandler: BridgedChangeNotificationHandler
3030
private let notifyNewInstruction: (Instruction) -> ()
3131

3232
/// Return 'nil' when inserting at the start of a function or in a global initializer.
3333
public var insertionBlock: BasicBlock? {
34-
switch insertAt {
34+
switch insertionPoint {
3535
case let .before(inst):
3636
return inst.parentBlock
3737
case let .atEndOf(block):
@@ -42,7 +42,7 @@ public struct Builder {
4242
}
4343

4444
public var bridged: BridgedBuilder {
45-
switch insertAt {
45+
switch insertionPoint {
4646
case .before(let inst):
4747
return BridgedBuilder(insertAt: .beforeInst, insertionObj: inst.bridged.obj,
4848
loc: location.bridged)
@@ -73,7 +73,7 @@ public struct Builder {
7373
public init(insertAt: InsertionPoint, location: Location,
7474
_ notifyNewInstruction: @escaping (Instruction) -> (),
7575
_ notificationHandler: BridgedChangeNotificationHandler) {
76-
self.insertAt = insertAt
76+
self.insertionPoint = insertAt
7777
self.location = location;
7878
self.notifyNewInstruction = notifyNewInstruction
7979
self.notificationHandler = notificationHandler

0 commit comments

Comments
 (0)