@@ -1945,24 +1945,24 @@ bool SwiftLanguageRuntimeImpl::IsValidErrorValue(ValueObject &in_value) {
1945
1945
return true ;
1946
1946
}
1947
1947
1948
- bool SwiftLanguageRuntimeImpl::GetDynamicTypeAndAddress_Protocol (
1949
- ValueObject &in_value, CompilerType protocol_type ,
1948
+ bool SwiftLanguageRuntimeImpl::GetDynamicTypeAndAddress_Existential (
1949
+ ValueObject &in_value, CompilerType existential_type ,
1950
1950
lldb::DynamicValueType use_dynamic, TypeAndOrName &class_type_or_name,
1951
1951
Address &address) {
1952
1952
Log *log (GetLog (LLDBLog::Types));
1953
1953
auto tss =
1954
- protocol_type .GetTypeSystem ().dyn_cast_or_null <TypeSystemSwift>();
1954
+ existential_type .GetTypeSystem ().dyn_cast_or_null <TypeSystemSwift>();
1955
1955
if (!tss) {
1956
1956
if (log)
1957
1957
log->Printf (" Could not get type system swift" );
1958
1958
return false ;
1959
1959
}
1960
1960
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 ) {
1964
1964
if (log)
1965
- log->Printf (" Could not get protocol typeref" );
1965
+ log->Printf (" Could not get existential typeref" );
1966
1966
return false ;
1967
1967
}
1968
1968
@@ -2006,7 +2006,7 @@ bool SwiftLanguageRuntimeImpl::GetDynamicTypeAndAddress_Protocol(
2006
2006
return false ;
2007
2007
2008
2008
auto pair = reflection_ctx->ProjectExistentialAndUnwrapClass (
2009
- remote_existential, *protocol_typeref ,
2009
+ remote_existential, *existential_typeref ,
2010
2010
tss->GetTypeSystemSwiftTypeRef ().GetDescriptorFinder ());
2011
2011
if (use_local_buffer)
2012
2012
PopLocalBuffer ();
@@ -2029,8 +2029,8 @@ bool SwiftLanguageRuntimeImpl::GetDynamicTypeAndAddress_Protocol(
2029
2029
#ifndef NDEBUG
2030
2030
if (ModuleList::GetGlobalModuleListProperties ()
2031
2031
.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);
2034
2034
assert (pair.has_value () >= reference_pair.has_value () &&
2035
2035
" RemoteAST and runtime diverge" );
2036
2036
@@ -2755,7 +2755,7 @@ bool SwiftLanguageRuntimeImpl::GetDynamicTypeAndAddress(
2755
2755
success = GetDynamicTypeAndAddress_ExistentialMetatype (
2756
2756
in_value, val_type, use_dynamic, class_type_or_name, address);
2757
2757
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,
2759
2759
class_type_or_name, address);
2760
2760
else {
2761
2761
CompilerType bound_type;
@@ -2778,7 +2778,7 @@ bool SwiftLanguageRuntimeImpl::GetDynamicTypeAndAddress(
2778
2778
use_dynamic, class_type_or_name,
2779
2779
address, static_value_type);
2780
2780
} else if (subst_type_info.AnySet (eTypeIsProtocol)) {
2781
- success = GetDynamicTypeAndAddress_Protocol (
2781
+ success = GetDynamicTypeAndAddress_Existential (
2782
2782
in_value, bound_type, use_dynamic, class_type_or_name, address);
2783
2783
} else {
2784
2784
success = GetDynamicTypeAndAddress_Value (in_value, bound_type,
0 commit comments