diff options
| author | KyleMiles <krm504@nyu.edu> | 2024-01-16 15:34:55 -0500 |
|---|---|---|
| committer | KyleMiles <krm504@nyu.edu> | 2024-01-19 15:45:24 -0500 |
| commit | e9b7c410bd50582d2a6ecd49cf02ea8f54ec1f1d (patch) | |
| tree | 78ad6272077d976a69ef76698d658991faf129d0 /rust/examples/dwarf/dwarf_import/src/die_handlers.rs | |
| parent | fb0fcd199680032932784b07b074738999779d58 (diff) | |
DWARF Import : Remove a bunch of CString overhead
Diffstat (limited to 'rust/examples/dwarf/dwarf_import/src/die_handlers.rs')
| -rw-r--r-- | rust/examples/dwarf/dwarf_import/src/die_handlers.rs | 6 |
1 files changed, 2 insertions, 4 deletions
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<R: Reader<Offset = usize>>( unit: &Unit<R>, entry: &DebuggingInformationEntry<R>, @@ -133,7 +131,7 @@ pub(crate) fn handle_enum<R: Reader<Offset = usize>>( pub(crate) fn handle_typedef( debug_info_builder: &mut DebugInfoBuilder, entry_type: Option<TypeUID>, - typedef_name: CString, + typedef_name: String, ) -> (Option<Ref<Type>>, bool) { // All base types have: // DW_AT_name @@ -313,7 +311,7 @@ pub(crate) fn handle_function<R: Reader<Offset = usize>>( ); } - let mut parameters: Vec<FunctionParameter<CString>> = vec![]; + let mut parameters: Vec<FunctionParameter<String>> = vec![]; let mut variable_arguments = false; // Get all the children and populate |
