@@ -1945,24 +1945,24 @@ bool SwiftLanguageRuntimeImpl::IsValidErrorValue(ValueObject &in_value) {
19451945 return true ;
19461946}
19471947
1948- bool SwiftLanguageRuntimeImpl::GetDynamicTypeAndAddress_Protocol (
1949- ValueObject &in_value, CompilerType protocol_type ,
1948+ bool SwiftLanguageRuntimeImpl::GetDynamicTypeAndAddress_Existential (
1949+ ValueObject &in_value, CompilerType existential_type ,
19501950 lldb::DynamicValueType use_dynamic, TypeAndOrName &class_type_or_name,
19511951 Address &address) {
19521952 Log *log (GetLog (LLDBLog::Types));
19531953 auto tss =
1954- protocol_type .GetTypeSystem ().dyn_cast_or_null <TypeSystemSwift>();
1954+ existential_type .GetTypeSystem ().dyn_cast_or_null <TypeSystemSwift>();
19551955 if (!tss) {
19561956 if (log)
19571957 log->Printf (" Could not get type system swift" );
19581958 return false ;
19591959 }
19601960
1961- const swift::reflection::TypeRef *protocol_typeref =
1962- GetTypeRef (protocol_type , &tss->GetTypeSystemSwiftTypeRef ());
1963- if (!protocol_typeref ) {
1961+ const swift::reflection::TypeRef *existential_typeref =
1962+ GetTypeRef (existential_type , &tss->GetTypeSystemSwiftTypeRef ());
1963+ if (!existential_typeref ) {
19641964 if (log)
1965- log->Printf (" Could not get protocol typeref" );
1965+ log->Printf (" Could not get existential typeref" );
19661966 return false ;
19671967 }
19681968
@@ -2006,7 +2006,7 @@ bool SwiftLanguageRuntimeImpl::GetDynamicTypeAndAddress_Protocol(
20062006 return false ;
20072007
20082008 auto pair = reflection_ctx->ProjectExistentialAndUnwrapClass (
2009- remote_existential, *protocol_typeref ,
2009+ remote_existential, *existential_typeref ,
20102010 tss->GetTypeSystemSwiftTypeRef ().GetDescriptorFinder ());
20112011 if (use_local_buffer)
20122012 PopLocalBuffer ();
@@ -2029,8 +2029,8 @@ bool SwiftLanguageRuntimeImpl::GetDynamicTypeAndAddress_Protocol(
20292029#ifndef NDEBUG
20302030 if (ModuleList::GetGlobalModuleListProperties ()
20312031 .GetSwiftValidateTypeSystem ()) {
2032- auto reference_pair = GetDynamicTypeAndAddress_ProtocolRemoteAST (
2033- in_value, protocol_type , use_local_buffer, existential_address);
2032+ auto reference_pair = GetDynamicTypeAndAddress_ExistentialRemoteAST (
2033+ in_value, existential_type , use_local_buffer, existential_address);
20342034 assert (pair.has_value () >= reference_pair.has_value () &&
20352035 " RemoteAST and runtime diverge" );
20362036
@@ -2755,7 +2755,7 @@ bool SwiftLanguageRuntimeImpl::GetDynamicTypeAndAddress(
27552755 success = GetDynamicTypeAndAddress_ExistentialMetatype (
27562756 in_value, val_type, use_dynamic, class_type_or_name, address);
27572757 else if (type_info.AnySet (eTypeIsProtocol))
2758- success = GetDynamicTypeAndAddress_Protocol (in_value, val_type, use_dynamic,
2758+ success = GetDynamicTypeAndAddress_Existential (in_value, val_type, use_dynamic,
27592759 class_type_or_name, address);
27602760 else {
27612761 CompilerType bound_type;
@@ -2778,7 +2778,7 @@ bool SwiftLanguageRuntimeImpl::GetDynamicTypeAndAddress(
27782778 use_dynamic, class_type_or_name,
27792779 address, static_value_type);
27802780 } else if (subst_type_info.AnySet (eTypeIsProtocol)) {
2781- success = GetDynamicTypeAndAddress_Protocol (
2781+ success = GetDynamicTypeAndAddress_Existential (
27822782 in_value, bound_type, use_dynamic, class_type_or_name, address);
27832783 } else {
27842784 success = GetDynamicTypeAndAddress_Value (in_value, bound_type,
0 commit comments