aboutsummaryrefslogtreecommitdiffstats
path: root/debug/Debug.ml
diff options
context:
space:
mode:
authorBernhard Schommer <bernhardschommer@gmail.com>2015-10-04 22:15:20 +0200
committerBernhard Schommer <bernhardschommer@gmail.com>2015-10-04 22:15:20 +0200
commit34cc6a603f34a430fc3b9a7071dcc1e19b2b7250 (patch)
tree2bc811f0893b7925164f70e0b284ea6061aca36c /debug/Debug.ml
parent57fceab9ba11cb98635236f31c85ca976ca7f48c (diff)
downloadcompcert-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/Debug.ml')
-rw-r--r--debug/Debug.ml9
1 files changed, 6 insertions, 3 deletions
diff --git a/debug/Debug.ml b/debug/Debug.ml
index 348310f6..161ee3ed 100644
--- a/debug/Debug.ml
+++ b/debug/Debug.ml
@@ -47,7 +47,8 @@ type implem =
mutable atom_parameter: ident -> ident -> atom -> unit;
mutable add_compilation_section_start: string -> int -> unit;
mutable add_compilation_section_end: string -> int -> unit;
- mutable compute_file_enum: (string -> int) -> (string-> int) -> (unit -> unit) -> unit;
+ mutable compute_diab_file_enum: (string -> int) -> (string-> int) -> (unit -> unit) -> unit;
+ mutable compute_gnu_file_enum: (string -> unit) -> unit;
mutable exists_section: string -> bool;
mutable remove_unused: ident -> unit;
mutable variable_printed: string -> unit;
@@ -81,7 +82,8 @@ let implem =
atom_parameter = (fun _ _ _ -> ());
add_compilation_section_start = (fun _ _ -> ());
add_compilation_section_end = (fun _ _ -> ());
- compute_file_enum = (fun _ _ _ -> ());
+ compute_diab_file_enum = (fun _ _ _ -> ());
+ compute_gnu_file_enum = (fun _ -> ());
exists_section = (fun _ -> true);
remove_unused = (fun _ -> ());
variable_printed = (fun _ -> ());
@@ -114,7 +116,8 @@ let atom_parameter fid pid atom = implem.atom_parameter fid pid atom
let add_compilation_section_start sec addr = implem.add_compilation_section_start sec addr
let add_compilation_section_end sec addr = implem.add_compilation_section_end sec addr
let exists_section sec = implem.exists_section sec
-let compute_file_enum end_l entry_l line_e = implem.compute_file_enum end_l entry_l line_e
+let compute_diab_file_enum end_l entry_l line_e = implem.compute_diab_file_enum end_l entry_l line_e
+let compute_gnu_file_enum f = implem.compute_gnu_file_enum f
let remove_unused ident = implem.remove_unused ident
let variable_printed ident = implem.variable_printed ident
let add_diab_info sec addr = implem.add_diab_info sec addr