Skip to content

Commit 1abf69d

Browse files
committed
Remove SwiftASTContext from Materializer.cpp (NFC)
1 parent 2b18f0d commit 1abf69d

File tree

1 file changed

+2
-13
lines changed

1 file changed

+2
-13
lines changed

lldb/source/Expression/Materializer.cpp

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,6 @@
2525
#include "lldb/Utility/RegisterValue.h"
2626
#include "lldb/lldb-forward.h"
2727

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-
3328
#include <memory>
3429

3530
using namespace lldb_private;
@@ -662,12 +657,6 @@ class EntityVariableBase : public Materializer::Entity {
662657

663658
CompilerType valobj_type = valobj_sp->GetCompilerType();
664659

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-
671660
lldb_private::DataExtractor data;
672661

673662
Status extract_error;
@@ -1076,8 +1065,8 @@ class EntityResultVariable : public Materializer::Entity {
10761065
"system: %s", status.AsCString());
10771066
return;
10781067
}
1079-
persistent_state =
1080-
target_sp->GetSwiftPersistentExpressionState(*exe_scope);
1068+
persistent_state = target_sp->GetPersistentExpressionStateForLanguage(
1069+
lldb::eLanguageTypeSwift);
10811070
#endif // LLDB_ENABLE_SWIFT
10821071
} else {
10831072
auto type_system_or_err =

0 commit comments

Comments
 (0)