mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Swift SIL: add some APIs
This commit is contained in:
@@ -37,4 +37,8 @@ public struct Location: Equatable, CustomStringConvertible {
|
||||
public func hasSameSourceLocation(as other: Location) -> Bool {
|
||||
bridged.hasSameSourceLocation(other.bridged)
|
||||
}
|
||||
|
||||
public static var artificialUnreachableLocation: Location {
|
||||
Location(bridged: swift.SILDebugLocation.getArtificialUnreachableLocation())
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user