diff options
author | jfrijters <jfrijters> | 2011-12-02 12:14:58 +0400 |
---|---|---|
committer | jfrijters <jfrijters> | 2011-12-02 12:14:58 +0400 |
commit | 1329badf2f10a9819841c1a59f5f3ccc435ef3ea (patch) | |
tree | 8478e20ef693062e3ef8d2634a2f8a8733b79991 /reflect/Emit | |
parent | 72e3bfb7966341d49f9696e8c91fe3bc1f419d21 (diff) |
Removed static Create() from __StandAloneMethodSig and added Universe.MakeStandAloneMethodSig().
Diffstat (limited to 'reflect/Emit')
-rw-r--r-- | reflect/Emit/ILGenerator.cs | 4 | ||||
-rw-r--r-- | reflect/Emit/SignatureHelper.cs | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/reflect/Emit/ILGenerator.cs b/reflect/Emit/ILGenerator.cs index c8f7ddb9..8ed9bd8f 100644 --- a/reflect/Emit/ILGenerator.cs +++ b/reflect/Emit/ILGenerator.cs @@ -853,12 +853,12 @@ namespace IKVM.Reflection.Emit public void EmitCalli(OpCode opc, CallingConvention callingConvention, Type returnType, Type[] parameterTypes) { - __EmitCalli(opc, __StandAloneMethodSig.Create(callingConvention, returnType, new CustomModifiers(), parameterTypes, null)); + __EmitCalli(opc, moduleBuilder.universe.MakeStandAloneMethodSig(callingConvention, returnType, new CustomModifiers(), parameterTypes, null)); } public void EmitCalli(OpCode opc, CallingConventions callingConvention, Type returnType, Type[] parameterTypes, Type[] optionalParameterTypes) { - __EmitCalli(opc, __StandAloneMethodSig.Create(callingConvention, returnType, new CustomModifiers(), parameterTypes, optionalParameterTypes, null)); + __EmitCalli(opc, moduleBuilder.universe.MakeStandAloneMethodSig(callingConvention, returnType, new CustomModifiers(), parameterTypes, optionalParameterTypes, null)); } public void __EmitCalli(OpCode opc, __StandAloneMethodSig sig) diff --git a/reflect/Emit/SignatureHelper.cs b/reflect/Emit/SignatureHelper.cs index b849371f..9c6c3504 100644 --- a/reflect/Emit/SignatureHelper.cs +++ b/reflect/Emit/SignatureHelper.cs @@ -162,11 +162,11 @@ namespace IKVM.Reflection.Emit case 0: if (unmanaged) { - Signature.WriteStandAloneMethodSig(module, bb, __StandAloneMethodSig.Create(unmanagedCallConv, returnType, returnTypeCustomModifiers, args.ToArray(), customModifiers.ToArray())); + Signature.WriteStandAloneMethodSig(module, bb, module.universe.MakeStandAloneMethodSig(unmanagedCallConv, returnType, returnTypeCustomModifiers, args.ToArray(), customModifiers.ToArray())); } else { - Signature.WriteStandAloneMethodSig(module, bb, __StandAloneMethodSig.Create(callingConvention, returnType, returnTypeCustomModifiers, args.ToArray(), optionalArgs.ToArray(), customModifiers.ToArray())); + Signature.WriteStandAloneMethodSig(module, bb, module.universe.MakeStandAloneMethodSig(callingConvention, returnType, returnTypeCustomModifiers, args.ToArray(), optionalArgs.ToArray(), customModifiers.ToArray())); } break; case Signature.FIELD: |