dlr bug
[mcs.git] / ilasm / codegen / FinallyBlock.cs
blob9e6740e9dc479678603fbc12413ae3d0eae89fca
1 //
2 // Mono.ILASM.FinallyBlock
3 //
4 // Author(s):
5 // Jackson Harper (Jackson@LatitudeGeo.com)
6 //
7 // (C) 2003 Jackson Harper, All rights reserved
8 //
11 using System;
13 namespace Mono.ILASM {
15 public class FinallyBlock : ISehClause {
17 private HandlerBlock handler_block;
19 public FinallyBlock ()
24 public void SetHandlerBlock (HandlerBlock hb)
26 handler_block = hb;
29 public PEAPI.HandlerBlock Resolve (CodeGen code_gen, MethodDef method)
31 PEAPI.CILLabel from = handler_block.GetFromLabel (code_gen, method);
32 PEAPI.CILLabel to = handler_block.GetToLabel (code_gen, method);
33 PEAPI.Finally phinally = new PEAPI.Finally (from, to);
35 return phinally;