aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/especialize.sml
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adamc@hcoop.net>2009-05-16 12:41:33 -0400
committerGravatar Adam Chlipala <adamc@hcoop.net>2009-05-16 12:41:33 -0400
commit768fd72de4842c23813cd45bfae4918c7395e0c1 (patch)
treeb05b4f028035c9fbcc9f2477a69002c8b0034312 /src/especialize.sml
parent79655b086c036d07806d0c345ffc9e6683891fe4 (diff)
Fix a Core_untangle bug that missed closure variable references; XHTMLize
Diffstat (limited to 'src/especialize.sml')
-rw-r--r--src/especialize.sml5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/especialize.sml b/src/especialize.sml
index 3ea4dcbd..9504a0be 100644
--- a/src/especialize.sml
+++ b/src/especialize.sml
@@ -348,7 +348,8 @@ fun specialize' file =
(DValRec vis', _) => [(DValRec (vis @ vis'), ErrorMsg.dummySpan)]
| _ => [(DValRec vis, ErrorMsg.dummySpan), d'])
in
- (*Print.prefaces "doDecl" [("d", CorePrint.p_decl E.empty d)];*)
+ (*Print.prefaces "doDecl" [("d", CorePrint.p_decl E.empty d),
+ ("d'", CorePrint.p_decl E.empty d')];*)
(ds, ({maxName = #maxName st,
funcs = funcs,
decls = []}, changed))
@@ -378,7 +379,9 @@ fun specialize file =
if changed then
let
(*val file = ReduceLocal.reduce file*)
+ (*val () = Print.prefaces "Pre-untangle" [("file", CorePrint.p_file CoreEnv.empty file)]*)
val file = CoreUntangle.untangle file
+ (*val () = Print.prefaces "Post-untangle" [("file", CorePrint.p_file CoreEnv.empty file)]*)
val file = Shake.shake file
in
(*print "Again!\n";*)