Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'mcs/ilasm/codegen/HandlerBlock.cs')
-rw-r--r--mcs/ilasm/codegen/HandlerBlock.cs39
1 files changed, 39 insertions, 0 deletions
diff --git a/mcs/ilasm/codegen/HandlerBlock.cs b/mcs/ilasm/codegen/HandlerBlock.cs
new file mode 100644
index 00000000000..900fc6bb5e5
--- /dev/null
+++ b/mcs/ilasm/codegen/HandlerBlock.cs
@@ -0,0 +1,39 @@
+//
+// Mono.ILASM.HandlerBlock
+//
+// Author(s):
+// Jackson Harper (Jackson@LatitudeGeo.com)
+//
+// (C) 2003 Jackson Harper (Jackson@LatitudeGeo.com)
+//
+
+
+using System;
+
+namespace Mono.ILASM {
+
+ public class HandlerBlock {
+
+ private LabelInfo from_label;
+ private LabelInfo to_label;
+
+ public HandlerBlock (LabelInfo from_label, LabelInfo to_label)
+ {
+ this.from_label = from_label;
+ this.to_label = to_label;
+ }
+
+ public PEAPI.CILLabel GetFromLabel (CodeGen code_gen, MethodDef method)
+ {
+ return from_label.Label;
+ }
+
+ public PEAPI.CILLabel GetToLabel (CodeGen code_gen, MethodDef method)
+ {
+ return to_label.Label;
+ }
+ }
+
+}
+
+