Swift SIL: add some APIs

This commit is contained in:
Erik Eckstein
2023-05-19 18:33:11 +02:00
parent b707b5a595
commit ee1c52bc77
9 changed files with 103 additions and 2 deletions

View File

@@ -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())
}
}