diff options
author | Bernhard Schommer <bernhardschommer@gmail.com> | 2015-10-01 09:41:06 +0200 |
---|---|---|
committer | Bernhard Schommer <bernhardschommer@gmail.com> | 2015-10-01 09:41:06 +0200 |
commit | 06a1a35d759dc780e389218b5f78ce3415d4b3cd (patch) | |
tree | 963823fdd3a84b946dffefb956a455b5bef26479 /debug/Dwarfgen.ml | |
parent | 4421b4168ad82d326665662a1a56a4db3cd41a11 (diff) | |
download | compcert-06a1a35d759dc780e389218b5f78ce3415d4b3cd.tar.gz compcert-06a1a35d759dc780e389218b5f78ce3415d4b3cd.zip |
Remove unused globals also from the debug informations.
Diffstat (limited to 'debug/Dwarfgen.ml')
-rw-r--r-- | debug/Dwarfgen.ml | 4 |
1 files changed, 2 insertions, 2 deletions
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 |