LibELF: Make ELF::Loader RefCounted

This commit is contained in:
Itamar
2020-04-17 14:40:38 +03:00
committed by Andreas Kling
parent 5c1b3ce42e
commit edaa9c06d9
5 changed files with 15 additions and 10 deletions

View File

@@ -80,7 +80,7 @@ DisassemblyModel::DisassemblyModel(Profile& profile, ProfileNode& node)
if (!m_file->is_valid())
return;
auto elf_loader = make<ELF::Loader>((const u8*)m_file->data(), m_file->size());
auto elf_loader = ELF::Loader::create((const u8*)m_file->data(), m_file->size());
auto symbol = elf_loader->find_symbol(node.address());
if (!symbol.has_value())