aboutsummaryrefslogtreecommitdiffstats
path: root/debug
diff options
context:
space:
mode:
authorXavier Leroy <xavierleroy@users.noreply.github.com>2019-07-08 10:48:24 +0200
committerGitHub <noreply@github.com>2019-07-08 10:48:24 +0200
commit96383f6dbccd4b280acad395b9a2683a645a9de3 (patch)
tree785fabd5bde83b9a690f9e46eb8e86e3448edfd3 /debug
parent98858317be25deed815c7a8b5d4e9d6b512f5de5 (diff)
downloadcompcert-kvx-96383f6dbccd4b280acad395b9a2683a645a9de3.tar.gz
compcert-kvx-96383f6dbccd4b280acad395b9a2683a645a9de3.zip
Compatibility with OCaml 4.08 (#302)
* Do not use `Pervasives.xxx` qualified names Starting with OCaml 4.08, `Pervasives` is deprecated in favor of `Stdlib`, and uses of `Pervasives` cause fatal warnings. This commit uses unqualified names instead, as no ambiguity occurs. * Clarify "open" statements OCaml 4.08.0 has stricter warnings concerning open statements that shadow module names. Closes: #300
Diffstat (limited to 'debug')
-rw-r--r--debug/DwarfPrinter.ml4
1 files changed, 2 insertions, 2 deletions
diff --git a/debug/DwarfPrinter.ml b/debug/DwarfPrinter.ml
index bbfcf311..9a24041b 100644
--- a/debug/DwarfPrinter.ml
+++ b/debug/DwarfPrinter.ml
@@ -268,7 +268,7 @@ module DwarfPrinter(Target: DWARF_TARGET):
(* Print the debug_abbrev section using the previous computed abbreviations*)
let print_abbrev oc =
let abbrevs = Hashtbl.fold (fun s i acc -> (s,i)::acc) abbrev_mapping [] in
- let abbrevs = List.sort (fun (_,a) (_,b) -> Pervasives.compare a b) abbrevs in
+ let abbrevs = List.sort (fun (_,a) (_,b) -> compare a b) abbrevs in
section oc Section_debug_abbrev;
print_label oc !abbrev_start_addr;
List.iter (fun (s,id) ->
@@ -685,7 +685,7 @@ module DwarfPrinter(Target: DWARF_TARGET):
print_label oc line_start;
list_opt s (fun () ->
section oc Section_debug_str;
- let s = List.sort (fun (a,_) (b,_) -> Pervasives.compare a b) s in
+ let s = List.sort (fun (a,_) (b,_) -> compare a b) s in
List.iter (fun (id,s) ->
print_label oc (loc_to_label id);
fprintf oc " .asciz %S\n" s) s)