compiler/module_imports.m:
Don't collect statistics for access to module_and_imports fields
that have been deleted, with the info now being looked up from the
parse_tree_module_src.
Don't store statistics for mcm_make, since that way of making a
module_and_imports structure was deleted recently.
tools/mai_stats:
Don't expect deleted statistics.
compiler/module_imports.m:
We construct module_and_imports structures in three different ways.
Each way fills in only a subset of the its fields with meaningful
information. To see whether this is OK, we need to know whether the
fields filled in with dummies are ever accessed. This diff thus adds
an extra field to module_and_imports structures that says how they
were constructed, and if the right compile time flag is set, it records,
for each construction method, which fields have been accessed.
compiler/mercury_compile_main.m:
If that same compile time flag is set, append the recorded information
to a file.
tools/mai_stats:
This tool summarizes the information in that file.