[mini] Use C++ linker iff building C++ that needs the C++ runtime (#12266)
[mono-project.git] / mcs / ilasm / codegen / TypeInstr.cs
blob1304e9a4cb7b865efcf5c5f09c54152126b766d9
1 //
2 // Mono.ILASM.TypeInstr
3 //
4 // Author(s):
5 // Jackson Harper (Jackson@LatitudeGeo.com)
6 //
7 // (C) 2003 Jackson Harper, All rights reserved
8 //
11 using System;
13 namespace Mono.ILASM {
15 public class TypeInstr : IInstr {
17 private PEAPI.TypeOp op;
18 private BaseTypeRef operand;
20 public TypeInstr (PEAPI.TypeOp op, BaseTypeRef operand, Location loc)
21 : base (loc)
23 this.op = op;
24 this.operand = operand;
27 public override void Emit (CodeGen code_gen, MethodDef meth,
28 PEAPI.CILInstructions cil)
30 operand.Resolve (code_gen);
31 cil.TypeInst (op, operand.PeapiType);