This commit was manufactured by cvs2svn to create branch 'mono-1-0'.
[mono.git] / mcs / ilasm / codegen / FieldInstr.cs
1 //
2 // Mono.ILASM.FieldInstr
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 FieldInstr : IInstr {
17
18                 private PEAPI.FieldOp op;
19                 private IFieldRef operand;
20
21                 public FieldInstr (PEAPI.FieldOp op, IFieldRef operand)
22                 {
23                         this.op = op;
24                         this.operand = operand;
25                 }
26
27                 public void Emit (CodeGen code_gen, MethodDef meth,
28                                   PEAPI.CILInstructions cil)
29                 {
30                         operand.Resolve (code_gen);
31                         cil.FieldInst (op, operand.PeapiField);
32                 }
33
34         }
35
36 }
37
38
39