2005-01-31 Zoltan Varga <vargaz@freemail.hu>
[mono.git] / mcs / ilasm / codegen / LdcInstr.cs
index c2d4f766fbf4b8b01a0dea253c96ad7998643c8f..186da7a285e04a69ff5d519a7f2439e2617e5e8c 100644 (file)
@@ -18,20 +18,22 @@ namespace Mono.ILASM {
                 private double d_operand;
                 private long l_operand;
 
-                public LdcInstr (MiscInstr op, double operand)
+                public LdcInstr (MiscInstr op, double operand, Location loc)
+                       : base (loc)
                 {
                         this.op = op;
                         d_operand = operand;
                 }
 
-                public LdcInstr (MiscInstr op, long operand)
+                public LdcInstr (MiscInstr op, long operand, Location loc)
+                       : base (loc)
                 {
                         this.op = op;
                         l_operand = operand;
                 }
 
-                public void Emit (CodeGen code_gen, MethodDef meth,
-                                 PEAPI.CILInstructions cil)
+                public override void Emit (CodeGen code_gen, MethodDef meth,
+                                          PEAPI.CILInstructions cil)
                 {
                         switch (op) {
                         case MiscInstr.ldc_r8: