Parcourir la source

Add some new System.Reflection flags

Marek Safar il y a 14 ans
Parent
commit
dba4ae6b96

+ 6 - 1
mcs/class/corlib/System.Reflection/ImageFileMachine.cs

@@ -1,10 +1,12 @@
 //
 // System.Reflection.ImageFileMachine enumeration
 //
-// Author:
+// Authors:
 //	Sebastien Pouliot  <[email protected]>
+//	Marek Safar  <[email protected]>
 //
 // Copyright (C) 2004 Novell, Inc (http://www.novell.com)
+// Copyright (C) 2012 Xamarin Inc (http://www.xamarin.com)
 //
 // Permission is hereby granted, free of charge, to any person obtaining
 // a copy of this software and associated documentation files (the
@@ -36,5 +38,8 @@ namespace System.Reflection {
 		I386 = 332,
 		IA64 = 512,
 		AMD64 = 34404,
+#if NET_4_5
+		ARM = 452,
+#endif
 	}
 }

+ 6 - 3
mcs/class/corlib/System.Reflection/MethodImplAttributes.cs

@@ -102,6 +102,9 @@ namespace System.Reflection {
 		/// <summary>
 		/// </summary>
 		MaxMethodImplVal = 65535,
-	} // MethodImplAttributes
-
-} // System.Reflection
+		
+#if NET_4_5
+		AggressiveInlining = 256
+#endif
+	}
+}

+ 7 - 2
mcs/class/corlib/System.Reflection/PortableExecutableKinds.cs

@@ -1,10 +1,12 @@
 //
 // System.Reflection.PortableExecutableKinds flag
 //
-// Author:
+// Authors:
 //	Sebastien Pouliot  <[email protected]>
+//	Marek Safar  <[email protected]>
 //
 // Copyright (C) 2004 Novell, Inc (http://www.novell.com)
+// Copyright (C) 2012 Xamarin Inc (http://www.xamarin.com)
 //
 // Permission is hereby granted, free of charge, to any person obtaining
 // a copy of this software and associated documentation files (the
@@ -38,7 +40,10 @@ namespace System.Reflection {
 		ILOnly = 1,
 		Required32Bit = 2,
 		PE32Plus = 4,
-		Unmanaged32Bit = 8
+		Unmanaged32Bit = 8,
+#if NET_4_5
+		Preferred32Bit = 16
+#endif
 	}
 }
 

+ 7 - 2
mcs/class/corlib/System.Reflection/ProcessorArchitecture.cs

@@ -1,10 +1,12 @@
 //
 // System.Reflection.ProcessorArchitecture flag
 //
-// Author:
+// Authors:
 //   Zoltan Varga ([email protected])
+//   Marek Safar  <[email protected]>
 //
 // Copyright (C) 2005 Novell, Inc (http://www.novell.com)
+// Copyright (C) 2012 Xamarin Inc (http://www.xamarin.com)
 //
 // Permission is hereby granted, free of charge, to any person obtaining
 // a copy of this software and associated documentation files (the
@@ -37,7 +39,10 @@ namespace System.Reflection {
 		MSIL = 1,
 		X86 = 2,
 		IA64 = 3,
-		Amd64 = 4
+		Amd64 = 4,
+#if NET_4_5
+		Arm = 5
+#endif
 	}
 }