Author: ankit
Date: 2005-04-30 05:31:35 -0400 (Sat, 30 Apr 2005)
New Revision: 43822

Modified:
   trunk/mcs/class/PEAPI/ChangeLog
   trunk/mcs/class/PEAPI/PEAPI.cs
Log:
* PEAPI.cs (InterfaceImpl.SortKey): New.
(MetaData.BuildMetaData): Sort InterfaceImpl table.
(MethodSemantics.SortKey): Compute key correctly.


Modified: trunk/mcs/class/PEAPI/ChangeLog
===================================================================
--- trunk/mcs/class/PEAPI/ChangeLog     2005-04-30 09:28:29 UTC (rev 43821)
+++ trunk/mcs/class/PEAPI/ChangeLog     2005-04-30 09:31:35 UTC (rev 43822)
@@ -1,3 +1,9 @@
+2005-04-30  Ankit Jain  <[EMAIL PROTECTED]>
+
+       * PEAPI.cs (InterfaceImpl.SortKey): New.
+       (MetaData.BuildMetaData): Sort InterfaceImpl table.
+       (MethodSemantics.SortKey): Compute key correctly.
+
 2005-04-18  Ankit Jain  <[EMAIL PROTECTED]>
 
        * PEAPI.cs (ManifestResource.InitResource): New. Used by constructors

Modified: trunk/mcs/class/PEAPI/PEAPI.cs
===================================================================
--- trunk/mcs/class/PEAPI/PEAPI.cs      2005-04-30 09:28:29 UTC (rev 43821)
+++ trunk/mcs/class/PEAPI/PEAPI.cs      2005-04-30 09:31:35 UTC (rev 43822)
@@ -4323,6 +4323,12 @@
 
     internal sealed override uint GetCodedIx(CIx code) { return 5; }
 
+    internal override uint SortKey ()
+    {
+        return (theClass.Row << MetaData.CIxShiftMap[(uint)CIx.TypeDefOrRef])
+                | theClass.GetCodedIx (CIx.TypeDefOrRef);
+    }
+
         }
   /**************************************************************************/ 
 
         /// <summary>
@@ -5008,6 +5014,7 @@
         }*/
       }
       SortTable(metaDataTables[(int)MDTable.GenericParamConstraint]);
+      SortTable(metaDataTables[(int)MDTable.InterfaceImpl]);
 
     }
 
@@ -5782,7 +5789,8 @@
                 }
 
     internal override uint SortKey() {
-      return eventOrProp.Row;
+      return (eventOrProp.Row << MetaData.CIxShiftMap [(uint)CIx.HasSemantics])
+              | eventOrProp.GetCodedIx (CIx.HasSemantics);
     }
 
     internal sealed override uint Size(MetaData md) {

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to