mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-16 18:03:36 +00:00
compiler/modules.m:
As above. The moved code comes from intermod.m (code for reading .opt
files) and from trans_opt.m (code for reading .trans_opt files).
After this move, modules.m contains all the predicates that augment
a module's compilation unit by adding to it information from the
.int* and .*opt files of other modules.
This centralization allows us to make private several previously public
predicates, including modules.m's several process_xxx_interfaces predicates
and intermod.m's update_error_status predicate, as well as the associated
types.
compiler/intermod.m:
compiler/trans_opt.m:
Delete the code moved to modules.m.
compiler/mercury_compile.m:
Don't import intermod.m or trans_opt.m; there is now no need.
compiler/notes/compiler_design.html:
Note the change in the role of intermod.m and trans_opt.m.