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, PEAPI.CILInstructions cil)
36 case MiscInstr.ldc_r8:
37 cil.ldc_r8 (d_operand);
39 case MiscInstr.ldc_r4:
40 cil.ldc_r4 ((float) d_operand);
42 case MiscInstr.ldc_i8:
43 cil.ldc_i8 (l_operand);