aboutsummaryrefslogtreecommitdiffstats
path: root/debug/Debug.ml
diff options
context:
space:
mode:
authorBernhard Schommer <bernhardschommer@gmail.com>2015-10-12 14:33:15 +0200
committerBernhard Schommer <bernhardschommer@gmail.com>2015-10-12 17:18:07 +0200
commit012827a7cba40f434b9fc6ce1b46dc725473eae7 (patch)
tree35a1742582fafc3c83f581311453e9bf9211a8b1 /debug/Debug.ml
parentd4c9a7c5b47670bad12d54a3fd4de0ad4eceb1ee (diff)
downloadcompcert-kvx-012827a7cba40f434b9fc6ce1b46dc725473eae7.tar.gz
compcert-kvx-012827a7cba40f434b9fc6ce1b46dc725473eae7.zip
Unified function for adding the atom identifier.
Instead of defining two functions for adding the mapping from atom to debug id we use one function which then sets the corresponding values. Bug 17392.
Diffstat (limited to 'debug/Debug.ml')
-rw-r--r--debug/Debug.ml9
1 files changed, 3 insertions, 6 deletions
diff --git a/debug/Debug.ml b/debug/Debug.ml
index 161ee3ed..22f913c5 100644
--- a/debug/Debug.ml
+++ b/debug/Debug.ml
@@ -23,8 +23,7 @@ open DwarfTypes
type implem =
{
mutable init: string -> unit;
- mutable atom_function: ident -> atom -> unit;
- mutable atom_global_variable: ident -> atom -> unit;
+ mutable atom_global: ident -> atom -> unit;
mutable set_composite_size: ident -> struct_or_union -> int option -> unit;
mutable set_member_offset: ident -> string -> int -> unit;
mutable set_bitfield_offset: ident -> string -> int -> string -> int -> unit;
@@ -58,8 +57,7 @@ type implem =
let implem =
{
init = (fun _ -> ());
- atom_function = (fun _ _ -> ());
- atom_global_variable = (fun _ _ -> ());
+ atom_global = (fun _ _ -> ());
set_composite_size = (fun _ _ _ -> ());
set_member_offset = (fun _ _ _ -> ());
set_bitfield_offset = (fun _ _ _ _ _ -> ());
@@ -91,8 +89,7 @@ let implem =
}
let init_compile_unit name = implem.init name
-let atom_function id atom = implem.atom_function id atom
-let atom_global_variable id atom = implem.atom_global_variable id atom
+let atom_global id atom = implem.atom_global id atom
let set_composite_size id sou size = implem.set_composite_size id sou size
let set_member_offset id field off = implem.set_member_offset id field off
let set_bitfield_offset id field off underlying size = implem.set_bitfield_offset id field off underlying size