Skip to content

Commit b1a3870

Browse files
committed
fixup! remove unused function
1 parent 250b9a1 commit b1a3870

File tree

1 file changed

+0
-30
lines changed

1 file changed

+0
-30
lines changed

lldb/source/Expression/IRExecutionUnit.cpp

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -774,36 +774,6 @@ class LoadAddressResolver {
774774
lldb::addr_t m_best_internal_load_address = LLDB_INVALID_ADDRESS;
775775
};
776776

777-
/// Find a module by LLDB-specific unique identifier.
778-
///
779-
/// \param[in] uid The UID of the module assigned to it on construction.
780-
///
781-
/// \returns ModuleSP of module with \c uid. Returns nullptr if no such
782-
/// module could be found.
783-
static lldb::ModuleSP FindDebugModule(lldb::user_id_t uid,
784-
const ModuleList &modules) {
785-
lldb::ModuleSP module_sp;
786-
modules.ForEach([&](const lldb::ModuleSP &m) {
787-
if (m->GetID() == uid) {
788-
module_sp = m;
789-
return IterationAction::Stop;
790-
}
791-
792-
auto *sym = m->GetSymbolFile();
793-
if (!sym)
794-
return IterationAction::Continue;
795-
796-
auto debug_modules = sym->GetDebugInfoModules();
797-
module_sp = FindDebugModule(uid, debug_modules);
798-
if (module_sp)
799-
return IterationAction::Stop;
800-
801-
return IterationAction::Continue;
802-
});
803-
804-
return module_sp;
805-
}
806-
807777
/// Returns address of the function referred to by the special function call
808778
/// label \c label.
809779
static llvm::Expected<lldb::addr_t>

0 commit comments

Comments
 (0)