From 056068abd228fefab4951a61700aa6d54fb88287 Mon Sep 17 00:00:00 2001 From: xleroy Date: Tue, 29 Jan 2013 09:10:29 +0000 Subject: Ported to Coq 8.4pl1. Merge of branches/coq-8.4. git-svn-id: https://yquem.inria.fr/compcert/svn/compcert/trunk@2101 fca1b0fc-160b-0410-b1d3-a4f43f01ea2e --- backend/PrintCminor.ml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'backend/PrintCminor.ml') diff --git a/backend/PrintCminor.ml b/backend/PrintCminor.ml index 59178bde..ef6ba1d8 100644 --- a/backend/PrintCminor.ml +++ b/backend/PrintCminor.ml @@ -18,7 +18,6 @@ open Format open Camlcoq open Datatypes -open BinPos open Integers open AST open PrintAST @@ -212,15 +211,15 @@ let rec print_stmt p s = fprintf p "@[{{ %a@;<0 -3>}}@]" print_stmt s | Sexit n -> - fprintf p "exit %d;" (camlint_of_nat n) + fprintf p "exit %d;" (Nat.to_int n) | Sswitch(e, cases, dfl) -> fprintf p "@[switch (%a) {" print_expr e; List.iter (fun (n, x) -> fprintf p "@ case %ld: exit %d;\n" - (camlint_of_coqint n) (camlint_of_nat x)) + (camlint_of_coqint n) (Nat.to_int x)) cases; - fprintf p "@ default: exit %d;\n" (camlint_of_nat dfl); + fprintf p "@ default: exit %d;\n" (Nat.to_int dfl); fprintf p "@;<0 -2>}@]" | Sreturn None -> fprintf p "return;" @@ -247,7 +246,7 @@ let print_function p id f = print_varlist (f.fn_params, true) print_sig f.fn_sig; fprintf p "@[{@ "; - let stksz = camlint_of_z f.fn_stackspace in + let stksz = Z.to_int32 f.fn_stackspace in if stksz <> 0l then fprintf p "stack %ld;@ " stksz; if f.fn_vars <> [] then -- cgit