From 34cc6a603f34a430fc3b9a7071dcc1e19b2b7250 Mon Sep 17 00:00:00 2001 From: Bernhard Schommer Date: Sun, 4 Oct 2015 22:15:20 +0200 Subject: Ensure that there are file directives for all files used in the debug information. --- debug/Debug.ml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'debug/Debug.ml') 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 -- cgit