File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -1689,6 +1689,26 @@ swift_getTypeByMangledNameInEnvironment(
1689
1689
}).getMetadata ();
1690
1690
}
1691
1691
1692
+ SWIFT_CC (swift) SWIFT_RUNTIME_EXPORT
1693
+ const Metadata * _Nullable
1694
+ swift_getTypeByMangledNameInEnvironmentInMetadataState(
1695
+ size_t metadataState,
1696
+ const char *typeNameStart,
1697
+ size_t typeNameLength,
1698
+ const TargetGenericEnvironment<InProcess> *environment,
1699
+ const void * const *genericArgs) {
1700
+ llvm::StringRef typeName (typeNameStart, typeNameLength);
1701
+ SubstGenericParametersFromMetadata substitutions (environment, genericArgs);
1702
+ return swift_getTypeByMangledName ((MetadataState)metadataState, typeName,
1703
+ genericArgs,
1704
+ [&substitutions](unsigned depth, unsigned index) {
1705
+ return substitutions.getMetadata (depth, index);
1706
+ },
1707
+ [&substitutions](const Metadata *type, unsigned index) {
1708
+ return substitutions.getWitnessTable (type, index);
1709
+ }).getMetadata ();
1710
+ }
1711
+
1692
1712
SWIFT_CC (swift) SWIFT_RUNTIME_EXPORT
1693
1713
const Metadata * _Nullable
1694
1714
swift_getTypeByMangledNameInContext(
You can’t perform that action at this time.
0 commit comments