Fix bug #367114.
authorAnkit Jain <radical@corewars.org>
Sun, 1 Jun 2008 23:06:37 +0000 (23:06 -0000)
committerAnkit Jain <radical@corewars.org>
Sun, 1 Jun 2008 23:06:37 +0000 (23:06 -0000)
commit832218ea3ca129ac244175eb6c45940e60fc5a48
treeea28e04a52c3e2b598388913b70107bd0514b859
parent169c1ff0f6e24d97a757d67ac8971a386116c846
Fix bug #367114.

In class/PEAPI:
Fix bug #367114.
* Code.cs (TryBlock.ResolveCatchBlocks): New.
(CILInstructions.AddTryBlock): Resolve the catch blocks with the new
method.
(Catch..ctor): Add new .ctor to allow exceptions of any type.
(Catch.ResolveType): New. Add the exception type to the metadata.

In ilasm/codegen:
Fix bug #367114.
* CatchBlock.cs: Allow exception to be of any type (BaseTypeRef) and not
just a class (BaseClassRef).

In ilasm/parser:
Part of fix for bug #367114.
* ILParser.jay (seh_clause): Allow exception to be of any type and not
just class.

svn path=/trunk/mcs/; revision=104636
mcs/class/PEAPI/ChangeLog
mcs/class/PEAPI/Code.cs
mcs/ilasm/codegen/CatchBlock.cs
mcs/ilasm/codegen/ChangeLog
mcs/ilasm/parser/ChangeLog
mcs/ilasm/parser/ILParser.jay