@@ -533,6 +533,7 @@ bool DWARFExpression::LinkThreadLocalStorage(
533
533
return true ;
534
534
}
535
535
536
+ #ifdef LLDB_ENABLE_SWIFT
536
537
// / Returns true if \c opcodes contains the opcode for the register used for the
537
538
// / Swift Async Context (x22 for aarch64, r14 for x86-64). It must also not
538
539
// / contain any other opcodes.
@@ -600,6 +601,7 @@ static llvm::Expected<Value> SwiftAsyncEvaluate_DW_OP_entry_value(
600
601
current_offset = new_offset;
601
602
return maybe_result;
602
603
}
604
+ #endif // LLDB_ENABLE_SWIFT
603
605
604
606
static llvm::Error
605
607
Evaluate_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,
698
700
if (!current_func)
699
701
return llvm::createStringError (" no current function" );
700
702
703
+ #ifdef LLDB_ENABLE_SWIFT
701
704
if (llvm::Expected<Value> result = SwiftAsyncEvaluate_DW_OP_entry_value (
702
705
*exe_ctx, *current_frame, dwarf_cu, *current_func, opcodes,
703
706
opcode_offset)) {
704
707
stack.push_back (*result);
705
708
return llvm::Error::success ();
706
709
} else
707
710
LLDB_LOG_ERROR (log , result.takeError (), " {0}" );
711
+ #endif // LLDB_ENABLE_SWIFT
708
712
709
713
CallEdge *call_edge = nullptr ;
710
714
ModuleList &modlist = target.GetImages ();
0 commit comments