Handle constrained. with dynamic methods.
authorRodrigo Kumpera <kumpera@gmail.com>
Thu, 7 Apr 2011 19:42:40 +0000 (16:42 -0300)
committerRodrigo Kumpera <kumpera@gmail.com>
Thu, 7 Apr 2011 21:23:37 +0000 (18:23 -0300)
commit838fbd4871b1842364db8154ad0578292ccbae8b
tree0382a45ed6abf2314ff7fc00c901b53635f6af14
parent4bed692ba439b9477e2dc19294e6cfb7ce3ec89a
Handle constrained. with dynamic methods.

* loader.c (mono_get_method_constrained): Move the constrained
type resolution to get_method_constrained.

* loader.c: Add mono_get_method_constrained_with_method that
passes the unconstrained method instead of its token.

* method-to-ir.c (mono_method_to_ir): Use new function
to resolve constrained methods for dynamic methods.

Fixes #685908
mono/metadata/loader.c
mono/metadata/metadata-internals.h
mono/mini/method-to-ir.c