[sre-save] Handle ConstructorBuilder custom attribute constructors.
commitad60bf18b7f42111cda55ffe0590f9134803b1c7
authorAleksey Kliger <aleksey@xamarin.com>
Thu, 27 Apr 2017 21:32:20 +0000 (27 17:32 -0400)
committerAleksey Kliger <aleksey@xamarin.com>
Fri, 28 Apr 2017 15:46:47 +0000 (28 11:46 -0400)
tree421533866f11c1596c8bd26c89e114f6a1a02390
parentc20c0b3b817ada8fab86d842d34dc55afcb9987f
[sre-save] Handle ConstructorBuilder custom attribute constructors.

The code expected that a custom attribute was specified as a MonoCMethod and
was calling mono_image_create_token().  However that function expects to be
called from the managed S.R.E.ModuleBuilder:GetToken (MemberInfo) which handles
all the builders in managed code.  Consequently mono_image_create_token () was
asserting.

So now we encode the token for a ConstructorBuilder in place.
mono/metadata/sre-save.c