Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

41 lines
822 B
C#

//
// Mono.ILASM.FieldInstr
//
// Author(s):
// Jackson Harper (Jackson@LatitudeGeo.com)
//
// (C) 2003 Jackson Harper, All rights reserved
//
using System;
namespace Mono.ILASM {
public class FieldInstr : IInstr {
private PEAPI.FieldOp op;
private IFieldRef operand;
public FieldInstr (PEAPI.FieldOp op, IFieldRef operand, Location loc)
: base (loc)
{
this.op = op;
this.operand = operand;
}
public override void Emit (CodeGen code_gen, MethodDef meth,
PEAPI.CILInstructions cil)
{
operand.Resolve (code_gen);
cil.FieldInst (op, operand.PeapiField);
}
}
}