summaryrefslogtreecommitdiff
path: root/rust/examples/dwarf/dwarf_import/src/die_handlers.rs
diff options
context:
space:
mode:
authorJosh Ferrell <josh@vector35.com>2024-07-05 15:13:23 -0400
committerJosh Ferrell <josh@vector35.com>2024-07-05 15:26:40 -0400
commitebef0e0202e9d58907963d632549c2ca9bfa8ea5 (patch)
tree63b54a9695981482c9217fe5ffff103c0ade5238 /rust/examples/dwarf/dwarf_import/src/die_handlers.rs
parent52dd0afc0dce16e454a37d73397359351d3f2064 (diff)
Misc small dwarf perf improvements
Diffstat (limited to 'rust/examples/dwarf/dwarf_import/src/die_handlers.rs')
-rw-r--r--rust/examples/dwarf/dwarf_import/src/die_handlers.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/rust/examples/dwarf/dwarf_import/src/die_handlers.rs b/rust/examples/dwarf/dwarf_import/src/die_handlers.rs
index e6530dd2..be77a414 100644
--- a/rust/examples/dwarf/dwarf_import/src/die_handlers.rs
+++ b/rust/examples/dwarf/dwarf_import/src/die_handlers.rs
@@ -295,9 +295,9 @@ pub(crate) fn handle_function<R: Reader<Offset = usize>>(
if let Some(name) = debug_info_builder_context.get_name(unit, entry) {
debug_info_builder.add_type(
get_uid(unit, entry),
- name.clone(),
+ &name,
Type::named_type_from_type(
- name,
+ &name,
&Type::function::<&binaryninja::types::Type>(return_type.as_ref(), &[], false),
),
false,