From 1bea9500b1b56659870e8c94513dc4abcff0f871 Mon Sep 17 00:00:00 2001 From: johnvg Date: Thu, 16 Oct 2014 10:37:53 +0000 Subject: move addFunctionsRange after collectFunctions for instances and generic cases, this adds local functions of instances and generic cases to the ifi_local_function_indices, in order to check the kinds of these local functions git-svn-id: https://svn.cs.ru.nl/repos/clean-compiler/trunk@2442 1f8540f1-abd5-4d5b-9d24-4c5ce8603e2d --- frontend/postparse.icl | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'frontend/postparse.icl') diff --git a/frontend/postparse.icl b/frontend/postparse.icl index f1dd0ed..7443610 100644 --- a/frontend/postparse.icl +++ b/frontend/postparse.icl @@ -1099,13 +1099,12 @@ scanModule mod=:{mod_ident,mod_type,mod_defs = pdefs} cached_modules support_gen n_global_functions = length fun_defs (fun_defs, ca) = collectFunctions fun_defs True {ca & ca_fun_count=n_global_functions,ca_rev_fun_defs=[]} -// (fun_range, ca) = addFunctionsRange fun_defs ca (macro_defs, ca) = collectFunctions defs.def_macros True ca - (macro_range, ca) = addFunctionsRange macro_defs ca (def_instances, ca) = collectFunctions defs.def_instances True ca (def_generic_cases, ca) = collectFunctions defs.def_generic_cases True ca + (macro_range, ca) = addFunctionsRange macro_defs ca - { ca_error = {pea_file = err_file,pea_ok}, ca_rev_fun_defs, ca_hash_table } = ca + {ca_error = {pea_file = err_file,pea_ok}, ca_rev_fun_defs, ca_hash_table} = ca mod = { mod & mod_imports = imports, mod_imported_objects = imported_objects, mod_foreign_exports = foreign_exports, mod_defs = { defs & def_instances = def_instances, def_generic_cases = def_generic_cases, -- cgit v1.2.3