Skip to content

Commit 6b9c09d

Browse files
committed
[lldb] Rework avoiding lookup in JIT module
1 parent da9ae02 commit 6b9c09d

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

lldb/source/Expression/IRExecutionUnit.cpp

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -817,6 +817,12 @@ IRExecutionUnit::FindInSymbols(const std::vector<ConstString> &names,
817817
for (size_t i = 0; i < m_preferred_modules.GetSize(); ++i)
818818
non_local_images.Remove(m_preferred_modules.GetModuleAtIndex(i));
819819

820+
// BEGIN SWIFT
821+
if (m_in_populate_symtab)
822+
if (lldb::ModuleSP jit_module_sp = m_jit_module_wp.lock())
823+
non_local_images.Remove(jit_module_sp);
824+
// END SWIFT
825+
820826
LoadAddressResolver resolver(*target, symbol_was_missing_weak);
821827

822828
ModuleFunctionSearchOptions function_options;
@@ -840,15 +846,6 @@ IRExecutionUnit::FindInSymbols(const std::vector<ConstString> &names,
840846
return *load_addr;
841847
}
842848

843-
if (sc.target_sp) {
844-
ModuleList images = sc.target_sp->GetImages();
845-
// BEGIN SWIFT
846-
if (m_in_populate_symtab)
847-
if (lldb::ModuleSP module_sp = m_jit_module_wp.lock())
848-
images.Remove(module_sp);
849-
// END SWIFT
850-
}
851-
852849
{
853850
SymbolContextList sc_list;
854851
m_preferred_modules.FindFunctions(name, lldb::eFunctionNameTypeFull,

0 commit comments

Comments
 (0)