diff options
author | Bernhard Schommer <bernhardschommer@gmail.com> | 2015-10-04 22:15:20 +0200 |
---|---|---|
committer | Bernhard Schommer <bernhardschommer@gmail.com> | 2015-10-04 22:15:20 +0200 |
commit | 34cc6a603f34a430fc3b9a7071dcc1e19b2b7250 (patch) | |
tree | 2bc811f0893b7925164f70e0b284ea6061aca36c /debug/DebugInformation.ml | |
parent | 57fceab9ba11cb98635236f31c85ca976ca7f48c (diff) | |
download | compcert-kvx-34cc6a603f34a430fc3b9a7071dcc1e19b2b7250.tar.gz compcert-kvx-34cc6a603f34a430fc3b9a7071dcc1e19b2b7250.zip |
Ensure that there are file directives for all files used in the debug
information.
Diffstat (limited to 'debug/DebugInformation.ml')
-rw-r--r-- | debug/DebugInformation.ml | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/debug/DebugInformation.ml b/debug/DebugInformation.ml index 36138882..874dfb77 100644 --- a/debug/DebugInformation.ml +++ b/debug/DebugInformation.ml @@ -663,7 +663,7 @@ let exists_section sec = let filenum: (string * string,int) Hashtbl.t = Hashtbl.create 7 -let compute_file_enum end_label entry_label line_end = +let compute_diab_file_enum end_label entry_label line_end = Hashtbl.iter (fun sec (_,_,secname) -> Hashtbl.add compilation_section_end sec (end_label secname); StringSet.iter (fun file -> @@ -671,6 +671,9 @@ let compute_file_enum end_label entry_label line_end = Hashtbl.add filenum (sec,file) lbl) !all_files; line_end ()) diab_additional +let compute_gnu_file_enum f = + StringSet.iter f !all_files + let printed_vars: StringSet.t ref = ref StringSet.empty let variable_printed id = |