Author: Dmitry Vasilyev Date: 2025-03-26T16:28:39+04:00 New Revision: 59c5d531991ca6d3cdd7072a13331dd5b0a5b321
URL: https://github.com/llvm/llvm-project/commit/59c5d531991ca6d3cdd7072a13331dd5b0a5b321 DIFF: https://github.com/llvm/llvm-project/commit/59c5d531991ca6d3cdd7072a13331dd5b0a5b321.diff LOG: [LLDB][NFC] Replace DWARFUnit with DWARFExpression::Delegate in DWARFExpressionList too (#133049) This is an update for #131645. Added: Modified: lldb/include/lldb/Expression/DWARFExpressionList.h lldb/source/Expression/DWARFExpressionList.cpp Removed: ################################################################################ diff --git a/lldb/include/lldb/Expression/DWARFExpressionList.h b/lldb/include/lldb/Expression/DWARFExpressionList.h index 519bbb354fa6f..d8f8ec247ed56 100644 --- a/lldb/include/lldb/Expression/DWARFExpressionList.h +++ b/lldb/include/lldb/Expression/DWARFExpressionList.h @@ -16,12 +16,6 @@ namespace lldb_private { -namespace plugin { -namespace dwarf { -class DWARFUnit; -} // namespace dwarf -} // namespace plugin - /// \class DWARFExpressionList DWARFExpressionList.h /// "lldb/Expression/DWARFExpressionList.h" Encapsulates a range map from file /// address range to a single DWARF location expression. @@ -30,13 +24,13 @@ class DWARFExpressionList { DWARFExpressionList() = default; DWARFExpressionList(lldb::ModuleSP module_sp, - const plugin::dwarf::DWARFUnit *dwarf_cu, + const DWARFExpression::Delegate *dwarf_cu, lldb::addr_t func_file_addr) : m_module_wp(module_sp), m_dwarf_cu(dwarf_cu), m_func_file_addr(func_file_addr) {} DWARFExpressionList(lldb::ModuleSP module_sp, DWARFExpression expr, - const plugin::dwarf::DWARFUnit *dwarf_cu) + const DWARFExpression::Delegate *dwarf_cu) : m_module_wp(module_sp), m_dwarf_cu(dwarf_cu) { AddExpression(0, LLDB_INVALID_ADDRESS, expr); } @@ -139,7 +133,7 @@ class DWARFExpressionList { /// The DWARF compile unit this expression belongs to. It is used to evaluate /// values indexing into the .debug_addr section (e.g. DW_OP_GNU_addr_index, /// DW_OP_GNU_const_index) - const plugin::dwarf::DWARFUnit *m_dwarf_cu = nullptr; + const DWARFExpression::Delegate *m_dwarf_cu = nullptr; // Function base file address. lldb::addr_t m_func_file_addr = LLDB_INVALID_ADDRESS; diff --git a/lldb/source/Expression/DWARFExpressionList.cpp b/lldb/source/Expression/DWARFExpressionList.cpp index be6c0a151159d..04592a1eb7ff4 100644 --- a/lldb/source/Expression/DWARFExpressionList.cpp +++ b/lldb/source/Expression/DWARFExpressionList.cpp @@ -7,7 +7,6 @@ //===----------------------------------------------------------------------===// #include "lldb/Expression/DWARFExpressionList.h" -#include "Plugins/SymbolFile/DWARF/DWARFUnit.h" #include "lldb/Symbol/Function.h" #include "lldb/Target/RegisterContext.h" #include "lldb/Target/StackFrame.h" _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits