From 06a1a35d759dc780e389218b5f78ce3415d4b3cd Mon Sep 17 00:00:00 2001 From: Bernhard Schommer Date: Thu, 1 Oct 2015 09:41:06 +0200 Subject: Remove unused globals also from the debug informations. --- debug/Dwarfgen.ml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'debug/Dwarfgen.ml') diff --git a/debug/Dwarfgen.ml b/debug/Dwarfgen.ml index d539f21a..aaf2d53f 100644 --- a/debug/Dwarfgen.ml +++ b/debug/Dwarfgen.ml @@ -197,7 +197,7 @@ let struct_to_entry sec id s = let tag = { structure_file_loc = translate_file_loc_opt sec s.ct_file_loc; structure_byte_size = s.ct_sizeof; - structure_declaration = Some s.ct_declaration; + structure_declaration = if s.ct_declaration then Some s.ct_declaration else None; structure_name = if s.ct_name <> "" then Some s.ct_name else None; } in let entry = new_entry id (DW_TAG_structure_type tag) in @@ -208,7 +208,7 @@ let union_to_entry sec id s = let tag = { union_file_loc = translate_file_loc_opt sec s.ct_file_loc; union_byte_size = s.ct_sizeof; - union_declaration = Some s.ct_declaration; + union_declaration = if s.ct_declaration then Some s.ct_declaration else None; union_name = if s.ct_name <> "" then Some s.ct_name else None; } in let entry = new_entry id (DW_TAG_union_type tag) in -- cgit