[m-dev.] for review: another dependency restructuring change

Fergus Henderson fjh at cs.mu.OZ.AU
Sat Jul 10 17:58:56 AEST 1999


On 09-Jul-1999, Simon Taylor <stayl at cs.mu.OZ.AU> wrote:
>  
> > Some more changes to minimize the complexity of the intermodule dependencies. 
> > In particular, ensure that bytecode.m does not need to import llds.m.
> 
> You haven't updated mlds.m which uses `binary_op' and `unary_op'.
> I'd suggest importing that from somewhere (e.g. mercury_compile.m)
> so that it gets compiled.

Done.

----------

Estimated hours taken: 0.1

compiler/mlds.m:
	Add import of module `builtin_ops'.  (This should have been
	part of my recent change which added `builtin_ops.m', but I
	forgot to modify this file as part of that change.)

compiler/mercury_compile.m:
	Add import of mlds.m, to ensure that it will get compiled,
	so as to avoid problems like the one above in future.

cvs -n diff  compiler/mercury_compile.m compiler/mlds.m
Index: compiler/mercury_compile.m
===================================================================
RCS file: /home/mercury1/repository/mercury/compiler/mercury_compile.m,v
retrieving revision 1.131
diff -u -r1.131 mercury_compile.m
--- mercury_compile.m	1999/07/01 08:26:46	1.131
+++ mercury_compile.m	1999/07/10 07:54:14
@@ -45,7 +45,7 @@
 :- import_module continuation_info, stack_layout.
 
 	% miscellaneous compiler modules
-:- import_module prog_data, hlds_module, hlds_pred, hlds_out, llds, rl.
+:- import_module prog_data, hlds_module, hlds_pred, hlds_out, llds, rl, mlds.
 :- import_module mercury_to_c, mercury_to_mercury, mercury_to_goedel.
 :- import_module dependency_graph, prog_util, rl_dump, rl_file.
 :- import_module options, globals, passes_aux.
Index: compiler/mlds.m
===================================================================
RCS file: /home/mercury1/repository/mercury/compiler/mlds.m,v
retrieving revision 1.1
diff -u -r1.1 mlds.m
--- mlds.m	1999/07/08 09:22:19	1.1
+++ mlds.m	1999/07/10 07:51:54
@@ -214,7 +214,7 @@
 
 :- interface.
 
-:- import_module hlds_pred, prog_data.
+:- import_module hlds_pred, prog_data, builtin_ops.
 
 % To avoid duplication, we use a few things from the LLDS.
 % It would be nice to avoid this dependency...

-- 
Fergus Henderson <fjh at cs.mu.oz.au>  |  "I have always known that the pursuit
WWW: <http://www.cs.mu.oz.au/~fjh>  |  of excellence is a lethal habit"
PGP: finger fjh at 128.250.37.3        |     -- the last words of T. S. Garp.
--------------------------------------------------------------------------
mercury-developers mailing list
Post messages to:       mercury-developers at cs.mu.oz.au
Administrative Queries: owner-mercury-developers at cs.mu.oz.au
Subscriptions:          mercury-developers-request at cs.mu.oz.au
--------------------------------------------------------------------------



More information about the developers mailing list