dotgnu-pnet-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Dotgnu-pnet-commits] CVS: pnet/codegen cg_gen.c,1.42,1.43


From: Rhys Weatherley <address@hidden>
Subject: [Dotgnu-pnet-commits] CVS: pnet/codegen cg_gen.c,1.42,1.43
Date: Mon, 04 Nov 2002 19:25:23 -0500

Update of /cvsroot/dotgnu-pnet/pnet/codegen
In directory subversions:/tmp/cvs-serv20413/codegen

Modified Files:
        cg_gen.c 
Log Message:


Fix an order of compilation problem in "mscorlib.dll" with "params" parameters.


Index: cg_gen.c
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/codegen/cg_gen.c,v
retrieving revision 1.42
retrieving revision 1.43
diff -C2 -r1.42 -r1.43
*** cg_gen.c    27 Oct 2002 14:41:04 -0000      1.42
--- cg_gen.c    5 Nov 2002 00:25:20 -0000       1.43
***************
*** 509,512 ****
--- 509,513 ----
        ILMethod *ctor;
        ILAttribute *attr;
+       ILType *signature;
        static unsigned char const blob[4] = {1, 0, 0, 0};
  
***************
*** 531,535 ****
        if(!ctor)
        {
!               return;
        }
        ctor = (ILMethod *)ILMemberImport(info->image, (ILMember *)ctor);
--- 532,554 ----
        if(!ctor)
        {
!               /* We are probably compiling "mscorlib.dll", and so we need to
!                  create a method reference until we compile the class later */
!               ctor = ILMethodCreate(classInfo, IL_MAX_UINT32, ".ctor",
!                                                         
IL_META_METHODDEF_PUBLIC |
!                                                         
IL_META_METHODDEF_HIDE_BY_SIG |
!                                                         
IL_META_METHODDEF_SPECIAL_NAME |
!                                                         
IL_META_METHODDEF_RT_SPECIAL_NAME);
!               if(!ctor)
!               {
!                       ILGenOutOfMemory(info);
!               }
!               signature = ILTypeCreateMethod(info->context, ILType_Void);
!               if(!signature)
!               {
!                       ILGenOutOfMemory(info);
!               }
!               ILTypeSetCallConv(signature, IL_META_CALLCONV_HASTHIS);
!               ILMethodSetCallConv(ctor, IL_META_CALLCONV_HASTHIS);
!               ILMemberSetSignature((ILMember *)ctor, signature);
        }
        ctor = (ILMethod *)ILMemberImport(info->image, (ILMember *)ctor);





reply via email to

[Prev in Thread] Current Thread [Next in Thread]