aboutsummaryrefslogtreecommitdiffstats
path: root/backend/PrintCminor.ml
diff options
context:
space:
mode:
authorxleroy <xleroy@fca1b0fc-160b-0410-b1d3-a4f43f01ea2e>2013-01-29 09:10:29 +0000
committerxleroy <xleroy@fca1b0fc-160b-0410-b1d3-a4f43f01ea2e>2013-01-29 09:10:29 +0000
commit056068abd228fefab4951a61700aa6d54fb88287 (patch)
tree6bf44526caf535e464e33999641b39032901fa67 /backend/PrintCminor.ml
parent34d58b781afec8ecd4afdcf2ab83f1c972338ba9 (diff)
downloadcompcert-kvx-056068abd228fefab4951a61700aa6d54fb88287.tar.gz
compcert-kvx-056068abd228fefab4951a61700aa6d54fb88287.zip
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
Diffstat (limited to 'backend/PrintCminor.ml')
-rw-r--r--backend/PrintCminor.ml9
1 files changed, 4 insertions, 5 deletions
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 "@[<v 3>{{ %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 "@[<v 2>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 "@[<v 2>{@ ";
- 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