Author: Michael Buch Date: 2025-08-05T10:30:46+01:00 New Revision: 4b31b4ebdd923dccc89fbb4904a8378658b466a6
URL: https://github.com/llvm/llvm-project/commit/4b31b4ebdd923dccc89fbb4904a8378658b466a6 DIFF: https://github.com/llvm/llvm-project/commit/4b31b4ebdd923dccc89fbb4904a8378658b466a6.diff LOG: [lldb][DWARFIndex][NFC] Remove DWARFIndex::IterationActionAdaptor Now that all `DWARFIndex` APIs have been converted to use `IterationAction`, the `IterationActionAdaptor` is unused. Added: Modified: lldb/source/Plugins/SymbolFile/DWARF/DWARFIndex.h Removed: ################################################################################ diff --git a/lldb/source/Plugins/SymbolFile/DWARF/DWARFIndex.h b/lldb/source/Plugins/SymbolFile/DWARF/DWARFIndex.h index 7b2551647935d..be73255aaf141 100644 --- a/lldb/source/Plugins/SymbolFile/DWARF/DWARFIndex.h +++ b/lldb/source/Plugins/SymbolFile/DWARF/DWARFIndex.h @@ -145,25 +145,6 @@ class DWARFIndex { IterationAction ProcessNamespaceDieMatchParents( const CompilerDeclContext &parent_decl_ctx, DWARFDIE die, llvm::function_ref<IterationAction(DWARFDIE die)> callback); - - /// Helper to convert callbacks that return an \c IterationAction - /// to a callback that returns a \c bool, where \c true indicates - /// we should continue iterating. This will be used to incrementally - /// migrate the callbacks to return an \c IterationAction. - /// - /// FIXME: remove once all callbacks in the DWARFIndex APIs return - /// IterationAction. - struct IterationActionAdaptor { - IterationActionAdaptor( - llvm::function_ref<IterationAction(DWARFDIE die)> callback) - : m_callback_ref(callback) {} - - bool operator()(DWARFDIE die) { - return m_callback_ref(std::move(die)) == IterationAction::Continue; - } - - llvm::function_ref<IterationAction(DWARFDIE die)> m_callback_ref; - }; }; } // namespace dwarf } // namespace lldb_private::plugin _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits