From c8a2d4896a73c5beb97d15be55dc153970b75982 Mon Sep 17 00:00:00 2001 From: Luke Street Date: Wed, 22 Nov 2023 12:21:24 -0500 Subject: [PATCH] dwarf dump: Fix reversed struct/class in def Fixes #10 --- src/util/dwarf.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/util/dwarf.rs b/src/util/dwarf.rs index fb21f21..fa7e1c7 100644 --- a/src/util/dwarf.rs +++ b/src/util/dwarf.rs @@ -1137,8 +1137,8 @@ pub fn struct_def_string( t: &StructureType, ) -> Result { let mut out = match t.kind { - StructureKind::Struct => "class".to_string(), - StructureKind::Class => "struct".to_string(), + StructureKind::Struct => "struct".to_string(), + StructureKind::Class => "class".to_string(), }; if let Some(name) = t.name.as_ref() { write!(out, " {}", name)?;