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

BranchInstr.cs « codegen « ilasm « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 168112bd507ee561b063c6f5059a0884e21b8494 (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
//
// Mono.ILASM.BranchInstr
//
// Author(s):
//  Jackson Harper (Jackson@LatitudeGeo.com)
//
// (C) 2003 Jackson Harper, All rights reserved
//


using System;


namespace Mono.ILASM {

        public class BranchInstr : IInstr {

                private PEAPI.BranchOp op;
                private LabelInfo label;
	
                public BranchInstr (PEAPI.BranchOp op, LabelInfo label, Location loc)
			: base (loc)
                {
                        this.op = op;
                        this.label = label;
                }

                public override void Emit (CodeGen code_gen, MethodDef meth,
					   PEAPI.CILInstructions cil)
                {
			cil.Branch (op, label.Label);
                }
        }

}