2 // Mono.ILASM.FieldInstr
5 // Jackson Harper (Jackson@LatitudeGeo.com)
7 // (C) 2003 Jackson Harper, All rights reserved
14 namespace Mono.ILASM {
16 public class FieldInstr : IInstr {
18 private PEAPI.FieldOp op;
19 private IFieldRef operand;
21 public FieldInstr (PEAPI.FieldOp op, IFieldRef operand, Location loc)
25 this.operand = operand;
28 public override void Emit (CodeGen code_gen, MethodDef meth,
29 PEAPI.CILInstructions cil)
31 operand.Resolve (code_gen);
32 cil.FieldInst (op, operand.PeapiField);