2004-07-29 Martin Baulig <martin@ximian.com>
authorMartin Baulig <martin@novell.com>
Thu, 29 Jul 2004 16:06:37 +0000 (16:06 -0000)
committerMartin Baulig <martin@novell.com>
Thu, 29 Jul 2004 16:06:37 +0000 (16:06 -0000)
* ILGenerator.cs (ILGenerator.Mono_GetCurrentOffset): New static
internal method.

* ModuleBuilder.cs (ModuleBuilder.Mono_GetGuid): New static
internal method.

svn path=/trunk/mcs/; revision=31612

mcs/class/corlib/System.Reflection.Emit/ChangeLog
mcs/class/corlib/System.Reflection.Emit/ILGenerator.cs
mcs/class/corlib/System.Reflection.Emit/ModuleBuilder.cs

index 91c666ca1b372d16586ce127da7b5b3e7d432cf8..82d92359a0a3619ce788569411d9446f77349b92 100644 (file)
@@ -1,3 +1,11 @@
+2004-07-29  Martin Baulig  <martin@ximian.com>
+
+       * ILGenerator.cs (ILGenerator.Mono_GetCurrentOffset): New static
+       internal method.
+
+       * ModuleBuilder.cs (ModuleBuilder.Mono_GetGuid): New static
+       internal method.
+
 2004-07-24  Martin Baulig  <martin@ximian.com>
 
        * TypeBuilder.cs (TypeBuilder.UnspecifiedTypeSize): Set this to 0
index 8cfd574e39f36d11005f9738b12729252ecd84e1..191d65a89eefd749f3868085178af82353e610e6 100644 (file)
@@ -897,5 +897,10 @@ namespace System.Reflection.Emit {
                                }
                        }
                }
+
+               internal static int Mono_GetCurrentOffset (ILGenerator ig)
+               {
+                       return ig.code_len;
+               }
        }
 }
index a7d4888d6d730510849b034e52acbaa8401a3356..f8a9d36f1af55f2af844f7a3d25b96a8a5779422 100644 (file)
@@ -687,6 +687,11 @@ namespace System.Reflection.Emit {
                                is_main = value;
                        }
                }
+
+               internal static Guid Mono_GetGuid (ModuleBuilder mb)
+               {
+                       return new Guid (mb.guid);
+               }
        }
 
        internal class ModuleBuilderTokenGenerator : TokenGenerator {