diff options
Diffstat (limited to 'mcs/ilasm/codegen/BranchInstr.cs')
-rw-r--r-- | mcs/ilasm/codegen/BranchInstr.cs | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/mcs/ilasm/codegen/BranchInstr.cs b/mcs/ilasm/codegen/BranchInstr.cs new file mode 100644 index 00000000000..168112bd507 --- /dev/null +++ b/mcs/ilasm/codegen/BranchInstr.cs @@ -0,0 +1,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); + } + } + +} + |