summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorJosh Ferrell <josh@vector35.com>2026-02-26 16:34:48 -0500
committerJosh Ferrell <josh@vector35.com>2026-02-26 16:34:48 -0500
commit30cb29617d0db9f5953c7468f208e33920a2239d (patch)
treedf2ba6c633cb242a79894cf527c7493645a362e6 /plugins
parent5999964098498384717717737078276067473007 (diff)
[DWARF Import] Do not wrap function parameter types in named type references
Diffstat (limited to 'plugins')
-rw-r--r--plugins/dwarf/dwarf_import/src/die_handlers.rs21
1 files changed, 5 insertions, 16 deletions
diff --git a/plugins/dwarf/dwarf_import/src/die_handlers.rs b/plugins/dwarf/dwarf_import/src/die_handlers.rs
index 59e222bd..a803afda 100644
--- a/plugins/dwarf/dwarf_import/src/die_handlers.rs
+++ b/plugins/dwarf/dwarf_import/src/die_handlers.rs
@@ -388,22 +388,11 @@ pub(crate) fn handle_function<R: ReaderType>(
})?;
let child_type = child_debug_type.get_type();
- // If this is a typedef, make sure we reference it instead of resolving to the underlying type
- if let Some(ntr) = child_type.get_named_type_reference() {
- let typedef_type = Type::named_type_from_type(ntr.name(), &child_type);
-
- parameters.push(FunctionParameter::new(
- typedef_type,
- name.unwrap_or_default(),
- None,
- ));
- } else {
- parameters.push(FunctionParameter::new(
- child_type,
- name.unwrap_or_default(),
- None,
- ));
- }
+ parameters.push(FunctionParameter::new(
+ child_type,
+ name.unwrap_or_default(),
+ None,
+ ));
} else if child.entry().tag() == constants::DW_TAG_unspecified_parameters {
variable_arguments = true;
}