do not check order sequence if option /order was not used
[mono.git] / mcs / class / IKVM.Reflection / Impl / SymbolSupport.cs
index 59d1ff07ee623a05c868541c0c23646cfce56e47..64547ebe8ede196bf2c1a924ef331b322776fee4 100644 (file)
@@ -46,20 +46,17 @@ namespace IKVM.Reflection.Impl
                byte[] GetDebugInfo(ref IMAGE_DEBUG_DIRECTORY idd);
                void RemapToken(int oldToken, int newToken);
                void DefineLocalVariable2(string name, FieldAttributes attributes, int signature, SymAddressKind addrKind, int addr1, int addr2, int addr3, int startOffset, int endOffset);
+               void OpenMethod(SymbolToken symbolToken, MethodBase mb);
        }
 
        static class SymbolSupport
        {
-#if !NO_SYMBOL_WRITER
-               private static readonly bool runningOnMono = System.Type.GetType("Mono.Runtime") != null;
-#endif
-
                internal static ISymbolWriterImpl CreateSymbolWriterFor(ModuleBuilder moduleBuilder)
                {
 #if NO_SYMBOL_WRITER
                        throw new NotSupportedException("IKVM.Reflection compiled with NO_SYMBOL_WRITER does not support writing debugging symbols.");
 #else
-                       if (runningOnMono)
+                       if (Universe.MonoRuntime)
                        {
 #if MONO
                                return new MdbWriter(moduleBuilder);