mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
SwiftCompilerSources: move SIL-related Context APIs from Optimizer to the SIL module
This commit is contained in:
@@ -110,6 +110,10 @@ extension MutatingContext {
|
||||
_bridged.notifyChanges(.Branches)
|
||||
}
|
||||
|
||||
public func notifyEffectsChanged() {
|
||||
_bridged.notifyChanges(.Effects)
|
||||
}
|
||||
|
||||
public func createGlobalVariable(name: String, type: Type, linkage: Linkage, isLet: Bool) -> GlobalVariable {
|
||||
let gv = name._withBridgedStringRef {
|
||||
_bridged.createGlobalVariable($0, type.bridged, linkage.bridged, isLet)
|
||||
|
||||
Reference in New Issue
Block a user