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

HandlerBlock.cs « codegen « ilasm « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 900fc6bb5e5ab23c838745b2b5892cc4e96f1d57 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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;
                }
        }

}