[m-dev.] for review: compiler RTTI reorganization

Fergus Henderson fjh at cs.mu.OZ.AU
Sun Apr 2 18:08:24 AEST 2000


On 26-Mar-2000, Fergus Henderson <fjh at cs.mu.OZ.AU> wrote:
> 
> Restructure the handling of RTTI and pseudo_type_infos
> to reduce dependencies on the LLDS.

I'll go ahead and commit this one.

Actually I made one small change to the diff that I posted:
I made MR_PseudoTypeInfo a pointer to a const struct.
Here's the relative diff.

--- CHANGES5.old	Sun Apr  2 16:51:02 2000
+++ CHANGES5	Sun Apr  2 16:51:03 2000
@@ -65,8 +65,9 @@
 	- Define MR_TypeCtorInfo as a pointer to a _const_ struct type,
 	  to avoid the need to generate casts to cast-away-const in
 	  various places in compiler/rtti_out.m.
-	  (It would be nice to do the same thing for MR_TypeInfo
-	  and MR_PseudoTypeInfo, since we never modify them after
+	  Likewise for MR_PseudoTypeInfo.
+	  (It would be nice to do the same thing for MR_TypeInfo,
+	  since we never modify MR_TypeInfo values after
 	  constructing them, but currently they are modified by the
 	  MR_fill_in_*() macros which are used to construct them.)

runtime/mercury_type_info.h:
@@ -82,9 +82,9 @@

 /* Forward declarations */

-typedef const struct MR_TypeCtorInfo_Struct     *MR_TypeCtorInfo;
-typedef struct MR_TypeInfo_Almost_Struct        *MR_TypeInfo;
-typedef struct MR_PseudoTypeInfo_Almost_Struct  *MR_PseudoTypeInfo;
+typedef const struct MR_TypeCtorInfo_Struct            *MR_TypeCtorInfo;
+typedef       struct MR_TypeInfo_Almost_Struct         *MR_TypeInfo;
+typedef const struct MR_PseudoTypeInfo_Almost_Struct   *MR_PseudoTypeInfo;


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