5 // Jackson Harper (Jackson@LatitudeGeo.com)
7 // (C) 2003 Jackson Harper, All rights reserved
13 namespace Mono.ILASM {
15 public class LdcInstr : IInstr {
18 private double d_operand;
19 private long l_operand;
21 public LdcInstr (MiscInstr op, double operand)
27 public LdcInstr (MiscInstr op, long operand)
33 public void Emit (CodeGen code_gen, MethodDef meth,
34 PEAPI.CILInstructions cil)
37 case MiscInstr.ldc_r8:
38 cil.ldc_r8 (d_operand);
40 case MiscInstr.ldc_r4:
41 cil.ldc_r4 ((float) d_operand);
43 case MiscInstr.ldc_i8:
44 cil.ldc_i8 (l_operand);