This commit is contained in:
jfrijters 2009-06-18 05:55:47 +00:00
Родитель b414784b5c
Коммит cf0ab3a93e
2 изменённых файлов: 5 добавлений и 1 удалений

Просмотреть файл

@ -2731,7 +2731,6 @@ namespace IKVM.Internal
Reachable = 1,
Processed = 2,
BranchTarget = 4,
JsrHasRet = 8,
}
internal struct Instruction

Просмотреть файл

@ -26,6 +26,7 @@ using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
#if IKVM_REF_EMIT
using IKVM.Reflection.Emit;
#else
@ -457,6 +458,10 @@ namespace IKVM.Internal
#else
AppDomain.CurrentDomain.DefineDynamicAssembly(name, access, null, null, null, null, null, true, attribs);
#endif
assemblyBuilder.SetCustomAttribute(new CustomAttributeBuilder(
typeof(RuntimeCompatibilityAttribute).GetConstructor(Type.EmptyTypes), new object[0],
new PropertyInfo[] { typeof(RuntimeCompatibilityAttribute).GetProperty("WrapNonExceptionThrows") }, new object[] { true },
new FieldInfo[0], new object[0]));
bool debug = System.Diagnostics.Debugger.IsAttached;
CustomAttributeBuilder debugAttr = new CustomAttributeBuilder(typeof(DebuggableAttribute).GetConstructor(new Type[] { typeof(bool), typeof(bool) }), new object[] { true, debug });
assemblyBuilder.SetCustomAttribute(debugAttr);