diff options
Diffstat (limited to 'mcs/ilasm/codegen/TypeInstr.cs')
-rw-r--r-- | mcs/ilasm/codegen/TypeInstr.cs | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/mcs/ilasm/codegen/TypeInstr.cs b/mcs/ilasm/codegen/TypeInstr.cs new file mode 100644 index 00000000000..1304e9a4cb7 --- /dev/null +++ b/mcs/ilasm/codegen/TypeInstr.cs @@ -0,0 +1,37 @@ +// +// Mono.ILASM.TypeInstr +// +// Author(s): +// Jackson Harper (Jackson@LatitudeGeo.com) +// +// (C) 2003 Jackson Harper, All rights reserved +// + + +using System; + +namespace Mono.ILASM { + + public class TypeInstr : IInstr { + + private PEAPI.TypeOp op; + private BaseTypeRef operand; + + public TypeInstr (PEAPI.TypeOp op, BaseTypeRef 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.TypeInst (op, operand.PeapiType); + } + + } + +} + |