2004-06-08 Martin Baulig <martin@ximian.com>
authorMartin Baulig <martin@novell.com>
Tue, 8 Jun 2004 02:26:17 +0000 (02:26 -0000)
committerMartin Baulig <martin@novell.com>
Tue, 8 Jun 2004 02:26:17 +0000 (02:26 -0000)
commit1b05fa056c491cfaa03634105d274566f24c328d
treee2785b12f136a6d34c9dc58eeb57577da17f772c
parente62e8cad567e7017e19614f1d624b55012f7da71
2004-06-08  Martin Baulig  <martin@ximian.com>

* ILGenerator.cs (TokenGenerator.GetToken): Added overloaded
version which takes a MethodInfo and a Type[].
(IlGenerator.EmitCall): When emitting a call to a varargs method,
use the new GetToken() to pass the optional argument types to the
runtime.

* ModuleBuilder.cs (ModuleBuilder.getMethodToken): New interncall.

svn path=/trunk/mcs/; revision=29000
mcs/class/corlib/System.Reflection.Emit/ChangeLog
mcs/class/corlib/System.Reflection.Emit/ILGenerator.cs
mcs/class/corlib/System.Reflection.Emit/ModuleBuilder.cs