aboutsummaryrefslogtreecommitdiffstats
path: root/driver/Frontend.mli
diff options
context:
space:
mode:
authorBernhard Schommer <bschommer@users.noreply.github.com>2018-01-11 15:15:43 +0100
committerXavier Leroy <xavierleroy@users.noreply.github.com>2018-01-11 15:15:43 +0100
commita6038ae9bae41526224c2416332c719f26261812 (patch)
treea3746c1dcf07e2e17c1e5da27c36ec43eeeeef5b /driver/Frontend.mli
parentd39a9b5eac9369a91d75b9a170c5590a976671e4 (diff)
downloadcompcert-kvx-a6038ae9bae41526224c2416332c719f26261812.tar.gz
compcert-kvx-a6038ae9bae41526224c2416332c719f26261812.zip
Move machine initialization to Frontend.init function. (#49)
The initialization of Machine.config, as well as the calls to various initialization functions for the C front-end, are now performed by the new `Frontend.init` function. This avoids code duplication in driver/Driver.ml and exportclight/Clightgen.ml.
Diffstat (limited to 'driver/Frontend.mli')
-rw-r--r--driver/Frontend.mli3
1 files changed, 3 insertions, 0 deletions
diff --git a/driver/Frontend.mli b/driver/Frontend.mli
index d0514d01..39f0e612 100644
--- a/driver/Frontend.mli
+++ b/driver/Frontend.mli
@@ -22,3 +22,6 @@ val prepro_actions: (Commandline.pattern * Commandline.action) list
val prepro_help: string
(** Commandline help description *)
+
+val init: unit -> unit
+ (** Initialize the Frontend *)