mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
SwiftCompilerSources: move SIL-related Context APIs from Optimizer to the SIL module
This commit is contained in:
@@ -30,6 +30,12 @@ public struct DeclRef: CustomStringConvertible, NoReflectionChildren {
|
||||
public static func ==(lhs: DeclRef, rhs: DeclRef) -> Bool {
|
||||
lhs.bridged.isEqualTo(rhs.bridged)
|
||||
}
|
||||
|
||||
/// Do we have enough information to determine all callees that could
|
||||
/// be reached by calling the function represented by Decl?
|
||||
public func calleesAreStaticallyKnowable(_ context: some Context) -> Bool {
|
||||
context._bridged.calleesAreStaticallyKnowable(bridged)
|
||||
}
|
||||
}
|
||||
|
||||
extension DeclRef: DiagnosticArgument {
|
||||
|
||||
Reference in New Issue
Block a user