File tree Expand file tree Collapse file tree 1 file changed +2
-13
lines changed Expand file tree Collapse file tree 1 file changed +2
-13
lines changed Original file line number Diff line number Diff line change 25
25
#include " lldb/Utility/RegisterValue.h"
26
26
#include " lldb/lldb-forward.h"
27
27
28
- #ifdef LLDB_ENABLE_SWIFT
29
- #include " Plugins/TypeSystem/Swift/SwiftASTContext.h"
30
- #include " Plugins/ExpressionParser/Swift/SwiftPersistentExpressionState.h"
31
- #endif // LLDB_ENABLE_SWIFT
32
-
33
28
#include < memory>
34
29
35
30
using namespace lldb_private ;
@@ -662,12 +657,6 @@ class EntityVariableBase : public Materializer::Entity {
662
657
663
658
CompilerType valobj_type = valobj_sp->GetCompilerType ();
664
659
665
- #ifdef LLDB_ENABLE_SWIFT
666
- if (SwiftASTContext::IsGenericType (valobj_type)) {
667
- valobj_sp = valobj_sp->GetDynamicValue (lldb::eDynamicDontRunTarget);
668
- }
669
- #endif // LLDB_ENABLE_SWIFT
670
-
671
660
lldb_private::DataExtractor data;
672
661
673
662
Status extract_error;
@@ -1076,8 +1065,8 @@ class EntityResultVariable : public Materializer::Entity {
1076
1065
" system: %s" , status.AsCString ());
1077
1066
return ;
1078
1067
}
1079
- persistent_state =
1080
- target_sp-> GetSwiftPersistentExpressionState (*exe_scope );
1068
+ persistent_state = target_sp-> GetPersistentExpressionStateForLanguage (
1069
+ lldb::eLanguageTypeSwift );
1081
1070
#endif // LLDB_ENABLE_SWIFT
1082
1071
} else {
1083
1072
auto type_system_or_err =
You can’t perform that action at this time.
0 commit comments