From e9b7c410bd50582d2a6ecd49cf02ea8f54ec1f1d Mon Sep 17 00:00:00 2001 From: KyleMiles Date: Tue, 16 Jan 2024 15:34:55 -0500 Subject: DWARF Import : Remove a bunch of CString overhead --- rust/examples/dwarf/dwarf_import/src/die_handlers.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'rust/examples/dwarf/dwarf_import/src/die_handlers.rs') diff --git a/rust/examples/dwarf/dwarf_import/src/die_handlers.rs b/rust/examples/dwarf/dwarf_import/src/die_handlers.rs index 7f4b1000..125038dd 100644 --- a/rust/examples/dwarf/dwarf_import/src/die_handlers.rs +++ b/rust/examples/dwarf/dwarf_import/src/die_handlers.rs @@ -23,8 +23,6 @@ use binaryninja::{ use gimli::{constants, AttributeValue::Encoding, DebuggingInformationEntry, Reader, Unit}; -use std::ffi::CString; - pub(crate) fn handle_base_type>( unit: &Unit, entry: &DebuggingInformationEntry, @@ -133,7 +131,7 @@ pub(crate) fn handle_enum>( pub(crate) fn handle_typedef( debug_info_builder: &mut DebugInfoBuilder, entry_type: Option, - typedef_name: CString, + typedef_name: String, ) -> (Option>, bool) { // All base types have: // DW_AT_name @@ -313,7 +311,7 @@ pub(crate) fn handle_function>( ); } - let mut parameters: Vec> = vec![]; + let mut parameters: Vec> = vec![]; let mut variable_arguments = false; // Get all the children and populate -- cgit v1.3.1