[RemoteMirror] Add a call to get the demangled name for a typeref.

rdar://problem/59909982
This commit is contained in:
Mike Ash
2020-03-11 11:34:32 -04:00
parent b179a3966b
commit e05720cd09
3 changed files with 42 additions and 0 deletions

View File

@@ -149,6 +149,16 @@ swift_reflection_typeRefForMangledTypeName(SwiftReflectionContextRef ContextRef,
const char *MangledName,
uint64_t Length);
/// Returns the demangled name for a typeref, or NULL if the name couldn't be
/// created.
///
/// The returned string is heap allocated and the caller must free() it when
/// done.
SWIFT_REMOTE_MIRROR_LINKAGE
char *
swift_reflection_copyDemangledNameForTypeRef(
SwiftReflectionContextRef ContextRef, swift_typeref_t OpaqueTypeRef);
/// Returns a structure describing the layout of a value of a typeref.
/// For classes, this returns the reference value itself.
SWIFT_REMOTE_MIRROR_LINKAGE