a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
37 lines
734 B
C#
37 lines
734 B
C#
//
|
|
// 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);
|
|
}
|
|
}
|
|
|
|
}
|
|
|