@@ -533,6 +533,7 @@ bool DWARFExpression::LinkThreadLocalStorage(
533533 return true ;
534534}
535535
536+ #ifdef LLDB_ENABLE_SWIFT
536537// / Returns true if \c opcodes contains the opcode for the register used for the
537538// / Swift Async Context (x22 for aarch64, r14 for x86-64). It must also not
538539// / contain any other opcodes.
@@ -600,6 +601,7 @@ static llvm::Expected<Value> SwiftAsyncEvaluate_DW_OP_entry_value(
600601 current_offset = new_offset;
601602 return maybe_result;
602603}
604+ #endif // LLDB_ENABLE_SWIFT
603605
604606static llvm::Error
605607Evaluate_DW_OP_entry_value (std::vector<Value> &stack, const DWARFUnit *dwarf_cu,
@@ -698,13 +700,15 @@ Evaluate_DW_OP_entry_value(std::vector<Value> &stack, const DWARFUnit *dwarf_cu,
698700 if (!current_func)
699701 return llvm::createStringError (" no current function" );
700702
703+ #ifdef LLDB_ENABLE_SWIFT
701704 if (llvm::Expected<Value> result = SwiftAsyncEvaluate_DW_OP_entry_value (
702705 *exe_ctx, *current_frame, dwarf_cu, *current_func, opcodes,
703706 opcode_offset)) {
704707 stack.push_back (*result);
705708 return llvm::Error::success ();
706709 } else
707710 LLDB_LOG_ERROR (log, result.takeError (), " {0}" );
711+ #endif // LLDB_ENABLE_SWIFT
708712
709713 CallEdge *call_edge = nullptr ;
710714 ModuleList &modlist = target.GetImages ();
0 commit comments