Remove AssemblyName from SPC descriptor (#50605)
authorMarek Safar <marek.safar@gmail.com>
Fri, 2 Apr 2021 08:46:08 +0000 (10:46 +0200)
committerGitHub <noreply@github.com>
Fri, 2 Apr 2021 08:46:08 +0000 (10:46 +0200)
It's not needed as the runtime bridge uses MonoAssemblyName

src/mono/System.Private.CoreLib/src/ILLink/ILLink.Descriptors.xml
src/mono/System.Private.CoreLib/src/System/Reflection/AssemblyName.Mono.cs

index a04c78e..2b876ac 100644 (file)
                <!-- appdomain.c (ves_icall_System_Runtime_Loader_AssemblyLoadContext_InternalGetLoadedAssemblies) -->
                <type fullname="System.Reflection.Assembly" preserve="fields"/>
 
-               <type fullname="System.Reflection.AssemblyName" preserve="fields" />
-
                <!-- reflection.c: mono_method_body_get_object -->
                <type fullname="System.Reflection.RuntimeExceptionHandlingClause" preserve="fields" >
                        <!-- reflection.c mono_object_new_checked in add_exception_handling_clause_to_array -->
index 86812bb..867cf69 100644 (file)
@@ -10,7 +10,6 @@ using System.Runtime.InteropServices;
 
 namespace System.Reflection
 {
-    [StructLayout(LayoutKind.Sequential)]
     public partial class AssemblyName
     {
         public AssemblyName(string assemblyName)