changeset 22554 | d1499fff65d8 |
parent 22360 | 26ead7ed4f4b |
child 22692 | 1e057a3f087d |
--- a/src/Pure/Tools/nbe.ML Fri Mar 30 16:19:02 2007 +0200 +++ b/src/Pure/Tools/nbe.ML Fri Mar 30 16:19:03 2007 +0200 @@ -121,7 +121,9 @@ fun ensure_funs thy funcgr t = let - val consts = CodegenConsts.consts_of thy t; + fun consts_of thy t = + fold_aterms (fn Const c => cons (CodegenConsts.const_of_cexpr thy c) | _ => I) t [] + val consts = consts_of thy t; val nbe_tab = NBE_Data.get thy; in CodegenFuncgr.deps funcgr consts