Skip to content

Commit 2bedd56

Browse files
Merge pull request #7364 from adrian-prantl/refactor-remove-ast5
Remove SwiftASTContext from ABI.cpp (NFC)
2 parents 2324797 + 0b39c58 commit 2bedd56

File tree

1 file changed

+2
-13
lines changed

1 file changed

+2
-13
lines changed

lldb/source/Target/ABI.cpp

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,6 @@
2020
#include "llvm/MC/TargetRegistry.h"
2121
#include <cctype>
2222

23-
#ifdef LLDB_ENABLE_SWIFT
24-
#include "Plugins/TypeSystem/Swift/SwiftASTContext.h"
25-
#include "Plugins/ExpressionParser/Swift/SwiftPersistentExpressionState.h"
26-
#endif //LLDB_ENABLE_SWIFT
27-
2823
using namespace lldb;
2924
using namespace lldb_private;
3025

@@ -93,15 +88,9 @@ ValueObjectSP ABI::GetReturnValueObject(Thread &thread, CompilerType &ast_type,
9388
lldb::LanguageType lang = ast_type.GetMinimumLanguage();
9489
PersistentExpressionState *persistent_expression_state;
9590
Target &target = *thread.CalculateTarget();
96-
#ifdef LLDB_ENABLE_SWIFT
97-
if (lang == lldb::eLanguageTypeSwift)
98-
persistent_expression_state =
99-
target.GetSwiftPersistentExpressionState(thread);
100-
else
101-
#endif // LLDB_ENABLE_SWIFT
102-
persistent_expression_state =
91+
persistent_expression_state =
10392
target.GetPersistentExpressionStateForLanguage(lang);
104-
93+
10594
if (!persistent_expression_state)
10695
return {};
10796

0 commit comments

Comments
 (0)