Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/ikvm-fork.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjfrijters <jfrijters>2010-06-07 08:21:35 +0400
committerjfrijters <jfrijters>2010-06-07 08:21:35 +0400
commitaa80cfdecfa2b5688aeb70d80fb53fa063e76196 (patch)
tree80fffef630c896f9b5d23d10c1f3b1a1943be56b
parentb172d2c9f7faa60c5f0c1300748209ec199055d2 (diff)
TypeWrapper.AssertFinished() doesn't make sense for the static compiler anymore.
-rw-r--r--runtime/ClassLoaderWrapper.cs4
-rw-r--r--runtime/TypeWrapper.cs2
2 files changed, 6 insertions, 0 deletions
diff --git a/runtime/ClassLoaderWrapper.cs b/runtime/ClassLoaderWrapper.cs
index d322d1d1..f86d0f5c 100644
--- a/runtime/ClassLoaderWrapper.cs
+++ b/runtime/ClassLoaderWrapper.cs
@@ -921,7 +921,9 @@ namespace IKVM.Internal
internal static TypeWrapper GetWrapperFromType(Type type)
{
//Tracer.Info(Tracer.Runtime, "GetWrapperFromType: {0}", type.AssemblyQualifiedName);
+#if !STATIC_COMPILER
TypeWrapper.AssertFinished(type);
+#endif
Debug.Assert(!type.IsPointer);
Debug.Assert(!type.IsByRef);
TypeWrapper wrapper;
@@ -1143,7 +1145,9 @@ namespace IKVM.Internal
internal void SetWrapperForType(Type type, TypeWrapper wrapper)
{
+#if !STATIC_COMPILER
TypeWrapper.AssertFinished(type);
+#endif
Dictionary<Type, TypeWrapper> dict;
#if CLASSGC
dict = typeToTypeWrapper ?? globalTypeToTypeWrapper;
diff --git a/runtime/TypeWrapper.cs b/runtime/TypeWrapper.cs
index e81ce6fe..44735682 100644
--- a/runtime/TypeWrapper.cs
+++ b/runtime/TypeWrapper.cs
@@ -2753,6 +2753,7 @@ namespace IKVM.Internal
internal abstract void Finish();
+#if !STATIC_COMPILER
[Conditional("DEBUG")]
internal static void AssertFinished(Type type)
{
@@ -2765,6 +2766,7 @@ namespace IKVM.Internal
Debug.Assert(!(type is TypeBuilder));
}
}
+#endif
#if !STATIC_COMPILER && !STUB_GENERATOR
internal void RunClassInit()