summaryrefslogtreecommitdiff
path: root/DevTools
diff options
context:
space:
mode:
authorAndrew Kaster <andrewdkaster@gmail.com>2020-04-11 12:24:07 -0600
committerAndreas Kling <kling@serenityos.org>2020-04-11 22:41:05 +0200
commit21b5909dc6c912809f0ff2fd4798f0d613b36c14 (patch)
tree6de075abe62c33671da24790120d3f1232060e82 /DevTools
parent6b0f47683c78b0b9482efb7c95e42bb9a2bcaf7f (diff)
downloadserenity-21b5909dc6c912809f0ff2fd4798f0d613b36c14.zip
LibELF: Move ELF classes into namespace ELF
This is for consistency with other namespace changes that were made a while back to the other libraries :)
Diffstat (limited to 'DevTools')
-rw-r--r--DevTools/ProfileViewer/DisassemblyModel.cpp4
-rw-r--r--DevTools/ProfileViewer/Profile.cpp8
2 files changed, 6 insertions, 6 deletions
diff --git a/DevTools/ProfileViewer/DisassemblyModel.cpp b/DevTools/ProfileViewer/DisassemblyModel.cpp
index ffa6c8ecfd..37939976ce 100644
--- a/DevTools/ProfileViewer/DisassemblyModel.cpp
+++ b/DevTools/ProfileViewer/DisassemblyModel.cpp
@@ -27,7 +27,7 @@
#include "DisassemblyModel.h"
#include "Profile.h"
#include <AK/MappedFile.h>
-#include <LibELF/ELFLoader.h>
+#include <LibELF/Loader.h>
#include <LibGUI/Painter.h>
#include <LibX86/Disassembler.h>
#include <ctype.h>
@@ -55,7 +55,7 @@ DisassemblyModel::DisassemblyModel(Profile& profile, ProfileNode& node)
, m_node(node)
{
m_file = make<MappedFile>(profile.executable_path());
- auto elf_loader = make<ELFLoader>((const u8*)m_file->data(), m_file->size());
+ auto elf_loader = make<ELF::Loader>((const u8*)m_file->data(), m_file->size());
auto symbol = elf_loader->find_symbol(node.address());
ASSERT(symbol.has_value());
diff --git a/DevTools/ProfileViewer/Profile.cpp b/DevTools/ProfileViewer/Profile.cpp
index d9a6c444f0..1d19b8e341 100644
--- a/DevTools/ProfileViewer/Profile.cpp
+++ b/DevTools/ProfileViewer/Profile.cpp
@@ -31,7 +31,7 @@
#include <AK/MappedFile.h>
#include <AK/QuickSort.h>
#include <LibCore/File.h>
-#include <LibELF/ELFLoader.h>
+#include <LibELF/Loader.h>
#include <stdio.h>
static void sort_profile_nodes(Vector<NonnullRefPtr<ProfileNode>>& nodes)
@@ -185,12 +185,12 @@ OwnPtr<Profile> Profile::load_from_perfcore_file(const StringView& path)
return nullptr;
}
- auto elf_loader = make<ELFLoader>(static_cast<const u8*>(elf_file.data()), elf_file.size());
+ auto elf_loader = make<ELF::Loader>(static_cast<const u8*>(elf_file.data()), elf_file.size());
MappedFile kernel_elf_file("/boot/kernel");
- OwnPtr<ELFLoader> kernel_elf_loader;
+ OwnPtr<ELF::Loader> kernel_elf_loader;
if (kernel_elf_file.is_valid())
- kernel_elf_loader = make<ELFLoader>(static_cast<const u8*>(kernel_elf_file.data()), kernel_elf_file.size());
+ kernel_elf_loader = make<ELF::Loader>(static_cast<const u8*>(kernel_elf_file.data()), kernel_elf_file.size());
auto events_value = object.get("events");
if (!events_value.is_array())