Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 2 additions & 13 deletions lldb/source/Target/ABI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,6 @@
#include "llvm/MC/TargetRegistry.h"
#include <cctype>

#ifdef LLDB_ENABLE_SWIFT
#include "Plugins/TypeSystem/Swift/SwiftASTContext.h"
#include "Plugins/ExpressionParser/Swift/SwiftPersistentExpressionState.h"
#endif //LLDB_ENABLE_SWIFT

using namespace lldb;
using namespace lldb_private;

Expand Down Expand Up @@ -93,15 +88,9 @@ ValueObjectSP ABI::GetReturnValueObject(Thread &thread, CompilerType &ast_type,
lldb::LanguageType lang = ast_type.GetMinimumLanguage();
PersistentExpressionState *persistent_expression_state;
Target &target = *thread.CalculateTarget();
#ifdef LLDB_ENABLE_SWIFT
if (lang == lldb::eLanguageTypeSwift)
persistent_expression_state =
target.GetSwiftPersistentExpressionState(thread);
else
#endif // LLDB_ENABLE_SWIFT
persistent_expression_state =
persistent_expression_state =
target.GetPersistentExpressionStateForLanguage(lang);

if (!persistent_expression_state)
return {};

Expand Down