From eaf4bab84af4b3db1ca9c6785ed803bbbd61b9a7 Mon Sep 17 00:00:00 2001 From: Bernhard Schommer Date: Thu, 1 Oct 2015 12:19:16 +0200 Subject: Only print locations for symbols that are present in the assembler. --- debug/Debug.ml | 3 +++ 1 file changed, 3 insertions(+) (limited to 'debug/Debug.ml') diff --git a/debug/Debug.ml b/debug/Debug.ml index 79da3695..30ff288f 100644 --- a/debug/Debug.ml +++ b/debug/Debug.ml @@ -49,6 +49,7 @@ type implem = mutable compute_file_enum: (string -> int) -> (string-> int) -> (unit -> unit) -> unit; mutable exists_section: string -> bool; mutable remove_unused: ident -> unit; + mutable variable_printed: string -> unit; } let implem = @@ -80,6 +81,7 @@ let implem = compute_file_enum = (fun _ _ _ -> ()); exists_section = (fun _ -> true); remove_unused = (fun _ -> ()); + variable_printed = (fun _ -> ()); } let init_compile_unit name = implem.init name @@ -109,3 +111,4 @@ let add_compilation_section_start sec addr = implem.add_compilation_section_star 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 remove_unused ident = implem.remove_unused ident +let variable_printed ident = implem.variable_printed ident -- cgit