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/Debug.ml | |
parent | 4421b4168ad82d326665662a1a56a4db3cd41a11 (diff) | |
download | compcert-06a1a35d759dc780e389218b5f78ce3415d4b3cd.tar.gz compcert-06a1a35d759dc780e389218b5f78ce3415d4b3cd.zip |
Remove unused globals also from the debug informations.
Diffstat (limited to 'debug/Debug.ml')
-rw-r--r-- | debug/Debug.ml | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/debug/Debug.ml b/debug/Debug.ml index 1d3b260e..79da3695 100644 --- a/debug/Debug.ml +++ b/debug/Debug.ml @@ -48,6 +48,7 @@ type implem = mutable add_compilation_section_start: string ->(int * int * int * string) -> unit; mutable compute_file_enum: (string -> int) -> (string-> int) -> (unit -> unit) -> unit; mutable exists_section: string -> bool; + mutable remove_unused: ident -> unit; } let implem = @@ -78,6 +79,7 @@ let implem = add_compilation_section_start = (fun _ _ -> ()); compute_file_enum = (fun _ _ _ -> ()); exists_section = (fun _ -> true); + remove_unused = (fun _ -> ()); } let init_compile_unit name = implem.init name @@ -106,3 +108,4 @@ 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 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 |