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

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

[Dotgnu-pnet-commits] CVS: pnet/ilasm ilasm_build.c,1.22,1.23


From: Rhys Weatherley <address@hidden>
Subject: [Dotgnu-pnet-commits] CVS: pnet/ilasm ilasm_build.c,1.22,1.23
Date: Sun, 13 Apr 2003 19:17:08 -0400

Update of /cvsroot/dotgnu-pnet/pnet/ilasm
In directory subversions:/tmp/cvs-serv8332/ilasm

Modified Files:
        ilasm_build.c 
Log Message:


ILAsmResolveMember: allow extra vararg call sites to be resolved after
a class has been "completed".


Index: ilasm_build.c
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/ilasm/ilasm_build.c,v
retrieving revision 1.22
retrieving revision 1.23
diff -C2 -r1.22 -r1.23
*** ilasm_build.c       10 Mar 2003 20:52:32 -0000      1.22
--- ilasm_build.c       13 Apr 2003 23:17:06 -0000      1.23
***************
*** 815,826 ****
        }
  
!       /* If the class is "complete", then we have already seen its
!          definition and we cannot add anything else to it */
!       if(ILClassIsComplete(classInfo))
        {
!               ILAsmPrintMessage(ILAsmFilename, ILAsmLineNum,
!                                                 "cannot resolve member `%s'", 
name);
!               ILAsmErrors = 1;
!               return 0;
        }
  
--- 815,832 ----
        }
  
!       /* Ignore the "class complete" check if this is a vararg call site,
!          because we can always add vararg calls to a complete class */
!       if(kind != IL_META_MEMBERKIND_METHOD ||
!          (ILType_Kind(sig) & IL_TYPE_COMPLEX_METHOD_SENTINEL) == 0)
        {
!               /* If the class is "complete", then we have already seen its
!                  definition and we cannot add anything else to it */
!               if(ILClassIsComplete(classInfo))
!               {
!                       ILAsmPrintMessage(ILAsmFilename, ILAsmLineNum,
!                                                         "cannot resolve 
member `%s'", name);
!                       ILAsmErrors = 1;
!                       return 0;
!               }
        }
  





reply via email to

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