summaryrefslogtreecommitdiff
path: root/driver/Driver.ml
diff options
context:
space:
mode:
Diffstat (limited to 'driver/Driver.ml')
-rw-r--r--driver/Driver.ml5
1 files changed, 3 insertions, 2 deletions
diff --git a/driver/Driver.ml b/driver/Driver.ml
index 556a476..09451eb 100644
--- a/driver/Driver.ml
+++ b/driver/Driver.ml
@@ -152,7 +152,8 @@ let compile_c_ast sourcename csyntax ofile =
(* Convert to Asm *)
let asm =
match Compiler.transf_c_program csyntax with
- | Errors.OK x -> x
+ | Errors.OK asm ->
+ Asmexpand.expand_program (Unusedglob.transf_program asm)
| Errors.Error msg ->
print_error stderr msg;
exit 2 in
@@ -161,7 +162,7 @@ let compile_c_ast sourcename csyntax ofile =
dump_asm asm (output_filename sourcename ".c" ".sdump");
(* Print Asm in text form *)
let oc = open_out ofile in
- PrintAsm.print_program oc (Unusedglob.transf_program asm);
+ PrintAsm.print_program oc asm;
close_out oc
(* From C source to asm *)