[amd64] Save missing register
[mono.git] / mcs / ilasm / codegen / HandlerBlock.cs
1 //
2 // Mono.ILASM.HandlerBlock
3 //
4 // Author(s):
5 //  Jackson Harper (Jackson@LatitudeGeo.com)
6 //
7 // (C) 2003 Jackson Harper (Jackson@LatitudeGeo.com)
8 //
9
10
11 using System;
12
13 namespace Mono.ILASM {
14
15         public class HandlerBlock {
16                 
17                 private LabelInfo from_label;
18                 private LabelInfo to_label;
19
20                 public HandlerBlock (LabelInfo from_label, LabelInfo to_label)
21                 {
22                         this.from_label = from_label;
23                         this.to_label = to_label;
24                 }
25
26                 public PEAPI.CILLabel GetFromLabel (CodeGen code_gen, MethodDef method)
27                 {
28                         return from_label.Label;
29                 }
30
31                 public PEAPI.CILLabel GetToLabel (CodeGen code_gen, MethodDef method)
32                 {
33                         return to_label.Label;
34                 }
35         }
36
37 }
38
39