File tree Expand file tree Collapse file tree 3 files changed +0
-35
lines changed Expand file tree Collapse file tree 3 files changed +0
-35
lines changed Original file line number Diff line number Diff line change @@ -106,10 +106,6 @@ class ValueObjectDynamicValue : public ValueObject {
106
106
107
107
bool HasDynamicValueTypeInfo () override { return true ; }
108
108
109
- // / Determine whether the scratch AST context has been replaced
110
- // / since this dynamic type has been created.
111
- bool DynamicValueTypeInfoNeedsUpdate ();
112
-
113
109
CompilerType GetCompilerTypeImpl () override ;
114
110
115
111
Address m_address; // /< The variable that this value object is based upon
Original file line number Diff line number Diff line change @@ -129,17 +129,6 @@ bool ValueObject::UpdateValueIfNeeded(bool update_format) {
129
129
130
130
bool did_change_formats = false ;
131
131
132
- // BEGIN SWIFT
133
- // Swift: Check whether the dynamic type system became stale.
134
- if (m_dynamic_value) {
135
- auto *dyn_val = static_cast <ValueObjectDynamicValue *>(m_dynamic_value);
136
- if (dyn_val->DynamicValueTypeInfoNeedsUpdate ()) {
137
- dyn_val->SetNeedsUpdate ();
138
- SetNeedsUpdate ();
139
- }
140
- }
141
- // END SWIFT
142
-
143
132
if (update_format)
144
133
did_change_formats = UpdateFormatsIfNeeded ();
145
134
Original file line number Diff line number Diff line change @@ -440,23 +440,3 @@ void ValueObjectDynamicValue::SetLanguageFlags(uint64_t flags) {
440
440
else
441
441
this ->ValueObject ::SetLanguageFlags (flags);
442
442
}
443
-
444
- bool ValueObjectDynamicValue::DynamicValueTypeInfoNeedsUpdate () {
445
- if (GetPreferredDisplayLanguage () != eLanguageTypeSwift)
446
- return false ;
447
-
448
- if (!m_dynamic_type_info.HasType ())
449
- return false ;
450
-
451
- #ifdef LLDB_ENABLE_SWIFT
452
- auto cached_ctx = m_value.GetCompilerType ().GetTypeSystem ();
453
- std::optional<SwiftScratchContextReader> scratch_ctx (
454
- GetSwiftScratchContext ());
455
-
456
- if (!scratch_ctx || !cached_ctx)
457
- return true ;
458
- return (void *)cached_ctx.GetSharedPointer ().get () != (void *)scratch_ctx->get ();
459
- #else // !LLDB_ENABLE_SWIFT
460
- return false ;
461
- #endif // LLDB_ENABLE_SWIFT
462
- }
You can’t perform that action at this time.
0 commit comments