* roottypes.cs: Rename from tree.cs.
[mono.git] / mcs / ilasm / codegen / HandlerBlock.cs
index e28bd82e1c1f1020762e70feb2ea23818b1aeb39..900fc6bb5e5ab23c838745b2b5892cc4e96f1d57 100644 (file)
@@ -13,11 +13,11 @@ using System;
 namespace Mono.ILASM {
 
         public class HandlerBlock {
+               
+                private LabelInfo from_label;
+                private LabelInfo to_label;
 
-                public readonly string from_label;
-                public readonly string to_label;
-
-                public HandlerBlock (string from_label, string to_label)
+                public HandlerBlock (LabelInfo from_label, LabelInfo to_label)
                 {
                         this.from_label = from_label;
                         this.to_label = to_label;
@@ -25,12 +25,12 @@ namespace Mono.ILASM {
 
                 public PEAPI.CILLabel GetFromLabel (CodeGen code_gen, MethodDef method)
                 {
-                        return method.GetLabelDef (from_label);
+                       return from_label.Label;
                 }
 
                 public PEAPI.CILLabel GetToLabel (CodeGen code_gen, MethodDef method)
                 {
-                        return method.GetLabelDef (to_label);
+                       return to_label.Label;
                 }
         }