[m-dev.] diff: MLDS back-end: misc bug fixes

Robert Ernst Johann JESCHOFNIK rejj at students.cs.mu.oz.au
Tue May 2 10:44:41 AEST 2000


On Tue, 2 May 2000, Fergus Henderson wrote:

> Estimated hours taken: 10
> 
> Lots of bug fixes for the MLDS back-end.
> 
> compiler/mlds_to_c.m:
> 	- Use llds_out__sym_name_mangle rather than prog_out__write_sym
> 	  to write out module names, since the latter was doing the wrong
> 	  thing for nested modules.

> Index: compiler/mlds_to_c.m
> ===================================================================
> RCS file: /home/mercury1/repository/mercury/compiler/mlds_to_c.m,v
> retrieving revision 1.27
> diff -u -d -r1.27 mlds_to_c.m
> --- compiler/mlds_to_c.m	2000/04/25 11:32:03	1.27
> +++ compiler/mlds_to_c.m	2000/05/01 17:30:46
> @@ -189,11 +189,12 @@
>  	io__nl,
>  	mlds_indent(Indent),
>  	io__write_string("#ifndef MR_HEADER_GUARD_"),
> -	prog_out__write_sym_name(ModuleName),
> +	{ llds_out__sym_name_mangle(ModuleName, MangledModuleName) },
> +	io__write_string(MangledModuleName),
>  	io__nl,


Is it a good idea to have the MLDS depending on the LLDS? I thought the
idea was to make them entirely seperate... (I have no idea on if there are
any such dependencies allready). Perhaps it would be a good idea to move
this into a different module that both import?


Rob

--------------------------------------------------------------------------
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