mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Swift SIL: add some APIs
* `Options.assertConfiguration` * `Argument.isIndirectResult` * in `Function`: `selfArgument`, `isTransparent`, `performanceConstraints` and `inlineStrategy` * `BuiltinInst.substitutionMap` * `SubstitutionMap.replacementTypes` * `Type.canBeClass`
This commit is contained in:
@@ -24,4 +24,9 @@ public struct SubstitutionMap {
|
||||
}
|
||||
|
||||
public var isEmpty: Bool { bridged.empty() }
|
||||
|
||||
public var replacementTypes: OptionalTypeArray {
|
||||
let types = BridgedTypeArray.fromReplacementTypes(bridged)
|
||||
return OptionalTypeArray(bridged: types)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user