From bcad156ef0d8201ebacccee4f6a53f4a0007264f Mon Sep 17 00:00:00 2001 From: sofia Date: Sat, 19 Jul 2025 14:58:10 +0300 Subject: [PATCH] Add new debug type datatypes --- reid-llvm-lib/src/debug_information.rs | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/reid-llvm-lib/src/debug_information.rs b/reid-llvm-lib/src/debug_information.rs index 5830013..633637b 100644 --- a/reid-llvm-lib/src/debug_information.rs +++ b/reid-llvm-lib/src/debug_information.rs @@ -271,6 +271,31 @@ pub struct DebugBasicType { pub flags: DwarfFlags, } +#[derive(Clone)] +pub struct DebugArrayType { + pub length: u64, + /// Alignment + pub align_bits: u32, + pub array_type: DebugTypeValue, + pub elements: Vec, +} + +#[derive(Clone)] +pub struct DebugPointerType { + pub name: String, + pub pointee: DebugTypeValue, + pub size_bits: u64, + pub align_bits: u64, +} + +#[derive(Clone)] +pub struct DebugStructType { + location: DebugLocationValue, + pub size_bits: u64, + pub align_bits: u64, + pub flags: DwarfFlags, +} + #[derive(Debug, Clone)] pub struct DebugSubprogramTypeData { pub parameters: Vec,