2 // Mono.ILASM.FinallyBlock
5 // Jackson Harper (Jackson@LatitudeGeo.com)
7 // (C) 2003 Jackson Harper, All rights reserved
13 namespace Mono
.ILASM
{
15 public class FinallyBlock
: ISehClause
{
17 private HandlerBlock handler_block
;
19 public FinallyBlock ()
24 public void SetHandlerBlock (HandlerBlock 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
);