simplified unoverload/overload policy in code generator preprocessor
authorhaftmann
Mon, 11 May 2009 09:40:38 +0200
changeset 31087 a95816259c77
parent 31085 e270f45ac0ec
child 31088 36a011423fcc
simplified unoverload/overload policy in code generator preprocessor
src/HOL/Tools/recfun_codegen.ML
--- a/src/HOL/Tools/recfun_codegen.ML	Sun May 10 14:22:04 2009 +0200
+++ b/src/HOL/Tools/recfun_codegen.ML	Mon May 11 09:40:38 2009 +0200
@@ -26,7 +26,7 @@
 fun add_thm NONE thm thy = Code.add_eqn thm thy
   | add_thm (SOME module_name) thm thy =
       case Code_Unit.warning_thm (Code_Unit.mk_eqn thy) thm
-       of SOME (thm', _) => let val c = Code_Unit.const_eqn thm'
+       of SOME (thm', _) => let val c = Code_Unit.const_eqn thy thm'
             in thy
               |> ModuleData.map (Symtab.update (c, module_name))
               |> Code.add_eqn thm'
@@ -57,7 +57,6 @@
     val thms = Code.these_raw_eqns thy c'
       |> map_filter (fn (thm, linear) => if linear then SOME thm else NONE)
       |> expand_eta thy
-      |> map (AxClass.overload thy)
       |> map_filter (meta_eq_to_obj_eq thy)
       |> Code_Unit.norm_varnames thy
       |> map (rpair opt_name)