[w32file] Move MonoIO.Find{First,Next,Close} to managed
[mono.git] / mcs / ilasm / codegen / BranchInstr.cs
1 //
2 // Mono.ILASM.BranchInstr
3 //
4 // Author(s):
5 //  Jackson Harper (Jackson@LatitudeGeo.com)
6 //
7 // (C) 2003 Jackson Harper, All rights reserved
8 //
9
10
11 using System;
12
13
14 namespace Mono.ILASM {
15
16         public class BranchInstr : IInstr {
17
18                 private PEAPI.BranchOp op;
19                 private LabelInfo label;
20         
21                 public BranchInstr (PEAPI.BranchOp op, LabelInfo label, Location loc)
22                         : base (loc)
23                 {
24                         this.op = op;
25                         this.label = label;
26                 }
27
28                 public override void Emit (CodeGen code_gen, MethodDef meth,
29                                            PEAPI.CILInstructions cil)
30                 {
31                         cil.Branch (op, label.Label);
32                 }
33         }
34
35 }
36