mirror of
https://github.com/Mercury-Language/mercury.git
synced 2025-12-14 21:35:49 +00:00
Import only one module per line in the modules of the compiler
Estimated hours taken: 3 Branches: main compiler/*.m: Import only one module per line in the modules of the compiler where my previous diff did not already do so. Misc other cleanups. Where relevant, use the new mechanism in tree.m. compiler/tree.m: Fix a performance problem I noticed while update :- import_module items. Instead of supplying a function to convert lists of trees to a tree, make the tree data structure able to hold a list of subtrees directly. This reduces the number of times where we have to convert list of trees to trees that are sticks just to stay within the old definition of what a tree is.
This commit is contained in:
@@ -25,7 +25,9 @@
|
||||
:- import_module mdbcomp__prim_data.
|
||||
:- import_module parse_tree__prog_data.
|
||||
|
||||
:- import_module list, assoc_list, std_util.
|
||||
:- import_module assoc_list.
|
||||
:- import_module list.
|
||||
:- import_module std_util.
|
||||
|
||||
% Create a code address which holds the address of the specified
|
||||
% procedure.
|
||||
@@ -105,7 +107,14 @@
|
||||
:- import_module libs__options.
|
||||
:- import_module parse_tree__prog_util.
|
||||
|
||||
:- import_module bool, char, int, string, set, term, varset, require.
|
||||
:- import_module bool.
|
||||
:- import_module char.
|
||||
:- import_module int.
|
||||
:- import_module require.
|
||||
:- import_module set.
|
||||
:- import_module string.
|
||||
:- import_module term.
|
||||
:- import_module varset.
|
||||
|
||||
%---------------------------------------------------------------------------%
|
||||
|
||||
|
||||
Reference in New Issue
Block a user