Bring jbevain/cecil's commit 5c88b826aeb02cccda0d779514d5986c8b0c987c, some pinvokes...
authorMiguel de Icaza <miguel@gnome.org>
Wed, 18 Apr 2012 22:28:41 +0000 (18:28 -0400)
committerMiguel de Icaza <miguel@gnome.org>
Wed, 18 Apr 2012 22:54:15 +0000 (18:54 -0400)
mcs/class/Mono.Cecil/Mono.Cecil/AssemblyWriter.cs

index bf41d5b720cbb604c1ce95d189f32f241c99c32d..a2d3ffa41a0faaf784a43f13234c3d6f45deba22 100644 (file)
@@ -1458,7 +1458,7 @@ namespace Mono.Cecil {
                {
                        var pinvoke = method.PInvokeInfo;
                        if (pinvoke == null)
-                               throw new ArgumentException ();
+                               return;
 
                        var table = GetTable<ImplMapTable> (Table.ImplMap);
                        table.AddRow (new ImplMapRow (