diff options
author | Xavier Leroy <xavier.leroy@college-de-france.fr> | 2019-07-05 16:51:42 +0200 |
---|---|---|
committer | Xavier Leroy <xavier.leroy@college-de-france.fr> | 2019-07-05 16:51:42 +0200 |
commit | 68e22ac70b911047e01f9917a343b7f402a0791f (patch) | |
tree | e447b5dad4143bb08c07d4f1d3ce6b7030cd3ea9 /backend/PrintXTL.ml | |
parent | 998f3c5ff90f6230b722b6094761f5989beea0a5 (diff) | |
download | compcert-68e22ac70b911047e01f9917a343b7f402a0791f.tar.gz compcert-68e22ac70b911047e01f9917a343b7f402a0791f.zip |
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.
Closes: #300
Diffstat (limited to 'backend/PrintXTL.ml')
-rw-r--r-- | backend/PrintXTL.ml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/PrintXTL.ml b/backend/PrintXTL.ml index cc1f7d49..6432682a 100644 --- a/backend/PrintXTL.ml +++ b/backend/PrintXTL.ml @@ -138,7 +138,7 @@ let print_function pp ?alloc ?live f = fprintf pp "f() {\n"; let instrs = List.sort - (fun (pc1, _) (pc2, _) -> Pervasives.compare pc2 pc1) + (fun (pc1, _) (pc2, _) -> compare pc2 pc1) (List.map (fun (pc, i) -> (P.to_int pc, i)) (PTree.elements f.fn_code)) in |