summaryrefslogtreecommitdiff
path: root/src/compiler.sml
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adamc@hcoop.net>2010-04-13 11:34:59 -0400
committerGravatar Adam Chlipala <adamc@hcoop.net>2010-04-13 11:34:59 -0400
commit8f4b1358953635df5066b83c250a64f28caf8190 (patch)
tree09031a102c4bcec842a1cc0a26291ef26aab7cb1 /src/compiler.sml
parent9baab78f1595875f5c4ab705cfc8d639cc569e8d (diff)
Command-line use of Iflow
Diffstat (limited to 'src/compiler.sml')
-rw-r--r--src/compiler.sml3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/compiler.sml b/src/compiler.sml
index bb55dfce..def0e6c3 100644
--- a/src/compiler.sml
+++ b/src/compiler.sml
@@ -75,6 +75,7 @@ type ('src, 'dst) transform = {
}
val debug = ref false
+val doIflow = ref false
fun transform (ph : ('src, 'dst) phase) name = {
func = fn input => let
@@ -1072,7 +1073,7 @@ val toMono_shake = transform mono_shake "mono_shake1" o toMono_reduce
val toMono_opt2 = transform mono_opt "mono_opt2" o toMono_shake
val iflow = {
- func = (fn file => (Iflow.check file; file)),
+ func = (fn file => (if !doIflow then Iflow.check file else (); file)),
print = MonoPrint.p_file MonoEnv.empty
}